Commit Graph

45 Commits

Author SHA1 Message Date
Morgan Pretty af073657a2 Cleaned up received message handling and a few bugs with duplicate message handling
Updated the YDB to GRDB migrations to include some progress when importing swarms & interactions (ie. the slow parts we can't properly show progress for)
Changed the MessageReceiveJob into a MessageHandlingJob (when receiving a message we now parse and store everything immediately to avoid a number of weird edge-cases)
Fixed a bug where the Poller would drop a Snode when returning from the background because it's last request would generally time out
Fixed a few bugs with invalid attachments
Added the ability to retry downloading a failed attachment
Added back the search results limit
2022-06-03 15:47:16 +10:00
Morgan Pretty 59696f7d2c Removed all the old Storage classes and YapDB extensions
Removed the AppUpdateNag code (unused)
Removed the Mantle dependency
2022-06-01 17:41:20 +10:00
Morgan Pretty 26c7a5022a Added a simple migration progress indicator and animation (need timing tweaks)
Cleaned up the creation of the GRDBStorage instance
Fixed an issue where the launch screen wasn't setting it's background colour based on the system setting
Renamed the GRDBStorageError to StorageError (in preparation of legacy 'Storage' relocation)
Consolidated the two Environment classes (in Swift)
Refactored the AppSetup class to Swift
2022-05-30 13:04:26 +10:00
Morgan Pretty cfb8f1615a Migrated a couple more preferences 2022-05-23 17:27:24 +10:00
Morgan Pretty 0db74ce1e3 Working on the MediaGallery and ClosedGroup handling
Fixed a couple of issues around the duplicate messages handling
Fixed a few issues with ClosedGroup polling and ClosedGroup control message handling
Started working through updating the MediaGallery
2022-05-08 22:01:39 +10:00
Morgan Pretty 3baeb981d9 Further work on the JobRunner
Moved the JobRunner into SessionUtilitiesKit so it can be used by SessionSnodeKit
Exposed a 'sharedLokiProject' value on UserDefaults to remove the hard-coded group name used everywhere
Added "blocking" job support for 'OnLaunch' and 'OnActive' jobs to the JobRunner (will retry until it succeeds)
Added the UpdateProfilePicture and RetrieveDefaultOpenGroupRooms jobs
2022-04-27 10:48:54 +10:00
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 5bb3bd7bc1 Cleaned up some config sync logic and allowed migrations to trigger them
Updated the migrations so they can specify whether a configuration sync is required
Moved the config sync logic into a MessageSender extension (makes far more sense than AppDelegate)
Fixed a bug where the ShareVC was triggering the 'versionMigrationsDidComplete' twice
Removed a couple of imports for files that had been deleted
2022-03-24 10:03:51 +11:00
Ryan Zhao 8652268557 add logs & fix PN 2022-03-21 13:55:51 +11:00
Ryan Zhao f7bfeb6e6d fix typo 2022-03-02 09:42:13 +11:00
Ryan Zhao cc1b1e8c51 poll for open groups in NSE 2022-02-17 14:55:32 +11:00
Ryan Zhao 7f8c952c66 fix notification badge 2022-02-16 16:18:49 +11:00
Ryan Zhao f21d142a6c remove useless cache populating in NSE 2022-02-16 13:52:58 +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 9690ce1a9e prevent self-send message PN 2021-10-15 09:27:45 +11:00
ryanzhao 340d2abc05 cancel notification if there is an outgoing message coming in 2021-09-17 11:26:26 +10:00
ryanzhao 96f9948781 fix self-send closed group messages won't show 2021-09-15 10:02:07 +10:00
ryanzhao e045808070 Revert "WIP: download attachments in NSE"
This reverts commit 6fd5bbeab1.
2021-08-30 10:00:19 +10:00
ryanzhao 454003c027 Revert "WIP: make the attachment download work in NSE"
This reverts commit 7295c14e17.
2021-08-30 10:00:04 +10:00
ryanzhao 7295c14e17 WIP: make the attachment download work in NSE 2021-08-27 13:32:31 +10:00
ryanzhao 6fd5bbeab1 WIP: download attachments in NSE 2021-08-26 10:49:55 +10:00
ryanzhao b7289e72a3 add accessibility to attachment buttons 2021-08-25 12:18:06 +10:00
Niels Andriesse 45042a1acf Fix typos 2021-08-10 11:17:04 +10:00
ryanzhao 111bbd0646 handle unsend requests in NSE 2021-08-04 15:57:37 +10:00
Niels Andriesse eb29b5d641 Minor cleanup 2021-08-03 15:46:34 +10:00
Ryan Zhao 7c82ede432 fix a minor mention issue that it won't show the name if there is no white space after a mention 2021-08-03 14:25:10 +10:00
Ryan Zhao 12a995bc91 enable only notify mention for closed groups 2021-08-03 13:47:11 +10:00
Ryan Zhao ad351d8009 clean 2021-07-29 10:46:00 +10:00
ryanzhao a951c84e48 prepare for push notification filter 2021-07-28 16:13:43 +10:00
Niels Andriesse d2161545d6 WIP 2021-07-15 16:39:59 +10:00
Brice-W 1f9cd92bce set expiration timer for new group members 2021-06-10 11:51:38 +10:00
nielsandriesse 4f80722b37 Respect mute settings in NSE 2021-05-05 08:47:33 +10:00
Niels Andriesse dd0baf0d97 Unify contacts APIs 2021-03-01 09:36: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 474acb5a30 Raise closed group size to 100 members 2021-01-19 13:51:26 +11:00
Niels Andriesse d5228abea9 Update notification extension for V2 closed group updates 2021-01-11 13:36:47 +11:00
Niels Andriesse 438bbccdfa Fix background polling 2020-12-07 11:21:24 +11:00
Niels Andriesse 2396f22ede Also notify for newly created groups 2020-12-04 10:00:06 +11:00
Niels Andriesse 91a75a65b1 Handle group messages in PNs 2020-12-04 09:40:58 +11:00
Niels Andriesse 5cf732709b Handle PN mentions 2020-12-04 09:16:40 +11:00
Niels Andriesse 75f7a7973b Debug PN extension 2020-12-03 17:26:29 +11:00
Niels Andriesse 2c28f6addb Clean 2020-12-03 15:08:29 +11:00
Renamed from SessionPushNotificationExtension/NotificationServiceExtension.swift (Browse further)