Commit graph

16 commits

Author SHA1 Message Date
Morgan Pretty eb927c36a9 Started cleaning up some of the SOGS and Onion Requests structure
Cleaned up the OnionRequestAPI so we don't need the LegacyOnionRequestAPI
Added requests for the user endpoints
Added deprecated flags to the legacy endpoints and functions
Added some logic to start handling the new poll (batch) response
Started adding unit tests for the OpenGroupAPI functions
2022-02-15 13:55:59 +11:00
Morgan Pretty 2284375fc0 Started work on updated SOGS support
Split the OpenGroupAPIV2 into separate files
Started working on the new auth and blinded-id approaches (new auth working with un-blinded id suggesting blinded-id code is incorrect)
Updated the SOGS request/response types to use Codable
Updated the SOGS Request type to use enums instead of strings for keys (to reduce likelihood of typos breaking things)
Updated SessionMessagingKit to use Codable and JSONEncoder/JSONDecoder instead of the legacy JSONSerialization
Cleaned up some naming conventions in the SessionMessagingKit (calling a URLRequest body 'parameters' is very confusing...)
Removed the custom TSRequest class (just using standard URLRequest everywhere instead)
Added a number of extension functions to enable some more functional-coding styles
Added extensions to Sodium methods to allow scalar multiplication and the ability to hash providing a salt and a personalisation value (both needed for new SOGS auth)
Fixed an issue where the legacy auth for SOGS could crash due to threading issues (multiple threads accessing the same variable)
Fixed an issue where if you were in two rooms in a single SOGS and deleted one of them, the other room would stop getting updates as the server public key was getting removed
2022-02-10 11:17:41 +11:00
nielsandriesse 86c2c39425 Fix background polling crash 2021-06-04 08:16:54 +10:00
nielsandriesse e24fca7b37 Fix job duplication bug
This could cause attachments not to download on the receiving side, and potentially also cause duplicate push notifications to be sent
2021-06-03 14:14:18 +10:00
Niels Andriesse 21ec051016 Fix PN sending from share extension 2020-12-07 10:04:38 +11:00
nielsandriesse 5dfd4b1965 Restructure 2020-11-25 16:15:16 +11:00
nielsandriesse 178ab7e3e2 WIP 2020-11-24 20:09:23 +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 6dc3184b2a Merge branch 'dev' into refactor-3 2020-11-13 10:07:45 +11:00
nielsandriesse a3382f41d4 Re-organize files 2020-11-09 10:58:47 +11:00
nielsandriesse bef616b5bd Implement NotifyPNServerJob 2020-11-08 16:38:03 +11:00
nielsandriesse 71d51a873a Further implement JobQueue 2020-11-08 13:54:40 +11:00
nielsandriesse ae81bfb610 Clean 2020-11-08 13:15:13 +11:00
nielsandriesse d80804ca5a Create JobQueue 2020-11-08 13:12:38 +11:00
nielsandriesse 28172b4ed2 Create AttachmentUploadJob & AttachmentDownloadJob
Also conform SnodeMessage to NSCoding
2020-11-08 12:34:08 +11:00