Commit Graph

57 Commits

Author SHA1 Message Date
Morgan Pretty 11231599db Further work on migrations and message pipeline refactoring
Refactored the AppDelegate from Objective C to Swift
Updated the HomeVC to use GRDB
Refactored a number of the Job types to be driven via GRDB and the new JobRunner
Fixed a bug where the LinkPreviewView wouldn't render correctly in dark mode
2022-04-21 16:42:35 +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
Morgan Pretty 78c0d000be Removed the OWSBlockingManager replacing it with the config sync
Fixed an issue where the "block" button would appear in the NoteToSelf swipe menu
Removed the OWSBlockingManager and supporting files
Removed a number of unused classes and methods
Refactored the BlockListUIUtils to Swift
2022-03-23 09:59:38 +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 94c1879263 fix unsend request receive handler 2021-07-30 17:04:56 +10:00
nielsandriesse e72c6d4cbd Mark .noThread error as non-retryable 2021-05-28 09:09:56 +10:00
nielsandriesse c36cf1a36d Hopefully fix closed group handling bug 2021-05-19 08:42:58 +10:00
Niels Andriesse bd04775cbf Implement open group invitations UI 2021-05-07 13:10:21 +10:00
Niels Andriesse 1a12487292 Clean 2021-04-15 10:09:05 +10:00
ryanzhao 1893ccac76 use TSIncomingMessage's serverTimastamp to make more sense 2021-04-14 11:39:04 +10:00
Ryan ZHAO fcc3c27779 fix unread message count bug 2021-04-12 16:56:53 +10:00
Niels Andriesse 08015f570f Create DataExtractionNotificationInfoMessage 2021-03-02 15:00:22 +11:00
Niels Andriesse 82690259b2 Clean protobuf 2021-03-02 13:12:24 +11:00
Niels Andriesse e945a6779f Include profile in configuration sync message 2021-02-23 09:47:38 +11:00
Niels Andriesse 37c652c0d0 Make admins send latest closed group key pair when members are added 2021-02-11 16:14:03 +11:00
nielsandriesse 65f397ccd1 Debug 2021-02-10 09:51:28 +11:00
Niels Andriesse 1fda8e4249 Add encryption key pair request message 2021-02-08 13:19:38 +11:00
Niels Andriesse cf333d5e3d Merge branch 'closed-groups' into multi-device 2021-01-25 13:50:18 +11:00
Niels Andriesse c9c83da3dc Rename ClosedGroupUpdateV2 → ClosedGroupControlMessage 2021-01-22 10:28:26 +11:00
Niels Andriesse 9ea1ccd0c2 Update ClosedGroupUpdate for new message types 2021-01-22 10:02:42 +11:00
Niels Andriesse 74fd3eb812 Partially implement message syncing 2021-01-14 10:40:58 +11:00
nielsandriesse d6314c8d30 Handle configuration messages 2021-01-13 13:38:07 +11:00
nielsandriesse d5e1237b0c Allow admins to leave & fix remaining issues 2021-01-08 14:54:27 +11:00
Niels Andriesse ce86d9a196 Debug 2021-01-06 09:26:49 +11:00
nielsandriesse de384fd4d9 Ensure legacy closed groups still work 2021-01-05 16:13:02 +11:00
Niels Andriesse da503b0df1 Update Session protocol closed groups logic 2021-01-05 14:54:37 +11:00
Niels Andriesse ef1d6392a7 Activate the Session protocol 2021-01-04 10:53:08 +11:00
Niels Andriesse 2a4977d269 Implement Session protocol 2020-12-14 09:49:02 +11:00
nielsandriesse d6c115bc2a Fix module linking issue 2020-12-02 16:25:16 +11:00
nielsandriesse 75b184c0b9 Use new message receiving pipeline in PN extension 2020-12-02 09:52:50 +11:00
Niels Andriesse ef76d73821 Fix typo 2020-11-30 14:20:36 +11:00
Niels Andriesse b621bdc69a Partially fix open groups 2020-11-30 11:00:28 +11:00
nielsandriesse addc859c84 Fix duplicate messages & debug 2020-11-27 15:13:42 +11:00
nielsandriesse 77c1f721b9 Further debug attachment sending 2020-11-27 09:07:24 +11:00
nielsandriesse 5dfd4b1965 Restructure 2020-11-25 16:15:16 +11:00
nielsandriesse 178ab7e3e2 WIP 2020-11-24 20:09:23 +11:00
Niels Andriesse ac1bbb3de1 Handle open group message ID 2020-11-23 15:58:48 +11:00
Niels Andriesse d2e8f2142e WIP 2020-11-23 15:08:01 +11:00
Niels Andriesse d7c71a8c06 Make things compile again 2020-11-23 10:24:40 +11:00
nielsandriesse b218a16b05 Implement attachment downloading 2020-11-20 15:53:56 +11:00
nielsandriesse 961878f74c Parse attachment pointers 2020-11-20 11:10:53 +11:00
Niels Andriesse 9242f971fd Fix timestamp handling 2020-11-19 16:28:30 +11:00
Niels Andriesse 72b4c3edaf WIP 2020-11-19 15:24:09 +11:00
nielsandriesse 58802936c1 Finish message receiving pipeline 2020-11-19 09:44:00 +11:00
nielsandriesse 97545de75e Handle expiration timer updates 2020-11-18 15:36:51 +11:00
nielsandriesse 7e9eb2f138 Make typing indicators work & implement job resuming 2020-11-18 14:27:30 +11:00
Niels Andriesse b030b5999b Make messages show up again 2020-11-18 12:02:38 +11:00
nielsandriesse aba4cda143 WIP 2020-11-12 16:23:34 +11:00
nielsandriesse 82127bfe4d Clean 2020-11-10 15:48:47 +11:00