Commit graph

34 commits

Author SHA1 Message Date
Morgan Pretty
4380f1975c Further work on the DB refactoring
Added the rest of the interaction structure to the database (testing some migration logic now - still needs to be finalised)
Updated the YDBToGRDB migrations to wrap their inserts in autorelease pools (helps memory slightly, unfortunately it's caching the YDB data which uses the most memory but we have opted for speed over RAM at the moment)
Updated the MockDataGenerator so it should now "chunk" the code generation (crazy large figures were previously resulting in excessive memory usage)
2022-04-08 16:56:33 +10:00
Morgan Pretty
cf66edb723 Further work on SessionMessagingKit migrations
Added migrations for contacts and started working through thread migration (have contact and closed group threads migrating)
Deprecated usage of ECKeyPair in the migrations (want to be able to remove Curve25519Kit in the future)
2022-04-06 15:43:26 +10:00
Morgan Pretty
a1b4554cdb Migrated the SessionSnodeKit from YapDatabase to GRDB
Changed the min OS version to iOS 13.0 (support for 'Identifiable')
Removed the alternate approaches to fetching the userKeyPair and userPublicKeyHexString (no consistently routed through the caching method)
Migrated the 'OWSIdentityManager' logic to use the new 'Identity' type
Added the 'Setting' table and got the pattern working fairly nicely (unfortunately there isn't a good way to avoid key collision without proper enums)
Updated the SessionSnodeKit to migration it's data from YDB to GRDB
Updated the SessionSnodeKit to use GRDB throughout it's logic
2022-04-01 17:22:45 +11:00
RyanZhao
99da263a50
Merge pull request #579 from mpretty-cyro/fix/message-request-crash
Fix message request bugs
2022-03-10 17:04:12 +11:00
Morgan Pretty
c2e13f02bc Fixed a crash which could occur while processing message request notifications due to not using a DB transaction 2022-03-10 16:50:48 +11:00
Ryan Zhao
195a91ac8b fix potential crash for nested transaction 2022-03-10 15:16:40 +11:00
Ryan Zhao
936fbd27c2 fix message request notification 2022-02-25 15:18:27 +11:00
Ryan Zhao
f22672ccd7 Merge branch 'dev' of https://github.com/oxen-io/session-ios into preformance-improvement 2022-02-25 14:58:20 +11:00
Morgan Pretty
4c89c165d8 Fixed a few bugs uncovered by QA
Fixed a bug where the ConfigurationMessage was getting generated before the contact state was persisted to the database in the message request flow causing odd behaviours (now generating the ConfigurationMessage within the same transaction)
Fixed a bug where sending a message to an existing message request thread once the message requests item has been hidden would show the message requests notification and trigger the section to re-appear on the home screen
Fixed a bug where blocked contacts weren't getting excluded from the contacts list in the configuration message
2022-02-23 17:12:57 +11:00
Morgan Pretty
47314bd639 Added a notification to indicate the user has a new message request
Fixed a bug where the notification count could be increased for message requests
Fixed a bug where an approved contact could be 'unapproved' due to an order of execution issue when generating the config sync message
Fixed a check to avoid registering for push notifications when on the simulator (old check didn't cater for M1 Macs)
Moved the 'hasHiddenMessageRequests' into the group user defaults so it can be accessed within the notification extension
Added code to handle an edge case where an old client could incorrectly un-approve a contact via a legacy configuration message
2022-02-21 14:48:53 +11:00
Ryan Zhao
cc1b1e8c51 poll for open groups in NSE 2022-02-17 14:55:32 +11:00
Morgan Pretty
9db5083cc5 Built out the Message Request functionality
Added the MessageRequestsViewController
Added a 'Message Requests' button to the settings screen
Added accept/reject buttons for message requests to the ConversationVC
Added the ability to hide the message request item on the HomeVC (re-appears if you get a new message request)
Added code to handle an edge-case where the message request approval state wouldn't be returned to the sender due to the recipient running an old version of the app
Prevented contacts which aren't associated with an approved thread from appearing when creating a closed group
Disabled notifications for threads which aren't approved
Updated the app notification count to exclude unapproved messages
Updated the app to ignore closed group creation messages if the group has no admins which are approved contacts
Fixed up the keyboard avoidance behaviour in the ConversationVC
Fixed a couple of minor interaction issues which affected some devices
Fixed an issue where the database migrations would run on the 2nd launch when creating a new account (causing odd behaviours)
2022-02-02 16:59:56 +11:00
Ryan Zhao
cfd7d67c9a fix for background polling collapsed notification title 2021-11-25 16:32:47 +11:00
Ryan Zhao
4f1093beca improve translation and notificaiton displaying 2021-11-23 11:58:19 +11:00
Ryan Zhao
5a5741f47b Group notifications from background polling 2021-11-23 11:05:04 +11:00
ryanzhao
ecf92ceeea fix PN sound settings not applying to remote PNs 2021-10-19 15:11:47 +11:00
ryanzhao
5553d4e068 fix default PN content 2021-10-15 10:02:00 +11:00
ryanzhao
c33630c1d1 don't wait for 5s before firing a message notification 2021-09-30 14:31:14 +10:00
ryanzhao
b7c6eafa87 fix notification preview type nested transaction crash 2021-09-30 14:24:04 +10:00
ryanzhao
bfc1e96c9d Merge branch 'sync-read' into bug-fixes 2021-09-16 14:56:04 +10:00
ryanzhao
d0947b83a9 cancel specific notification if there is an identifier 2021-09-16 10:32:23 +10:00
ryanzhao
3c4a19e30d fix nested transaction crash 2021-09-13 14:37:10 +10:00
Ryan Zhao
80bf62df90 fix nested transaction crash on setting notification identifier 2021-08-03 10:42:09 +10:00
Ryan Zhao
f88c2b1708 fix crash 2021-08-02 15:24:12 +10:00
Ryan Zhao
e2a0578770 cancel local notifications for unsend requests 2021-08-02 14:03:46 +10:00
Ryan Zhao
423feae426 add notify reply and clean 2021-07-30 09:43:05 +10:00
Niels Andriesse
483ed4792f Fix localization & clean 2021-07-29 10:14:06 +10:00
ryanzhao
354b7e0dc3 notify mentions as settings 2021-07-26 15:43:03 +10:00
nielsandriesse
a098ba7125 Remove unused code 2021-05-05 12:13:48 +10:00
Niels Andriesse
dd0baf0d97 Unify contacts APIs 2021-03-01 09:36:18 +11:00
Niels Andriesse
713b781def Remove legacy notifications adaptee 2021-02-23 15:38:55 +11:00
Niels Andriesse
49c825eb43 Remove old conversation screen 2021-02-19 15:46:52 +11:00
Niels Andriesse
5524ab1932 Remove unused code 2021-01-27 14:21:13 +11:00
nielsandriesse
a915c5ddaa Re-organize files 2021-01-12 11:05:52 +11:00