Commit Graph

16 Commits (f5e48cec0139deb18c3f66f6da8588215abed52f)

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
4 years ago
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
4 years ago
nielsandriesse 86c2c39425 Fix background polling crash 4 years ago
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
4 years ago
Niels Andriesse 21ec051016 Fix PN sending from share extension 5 years ago
nielsandriesse 5dfd4b1965 Restructure 5 years ago
nielsandriesse 178ab7e3e2 WIP 5 years ago
nielsandriesse 7e9eb2f138 Make typing indicators work & implement job resuming 5 years ago
Niels Andriesse b030b5999b Make messages show up again 5 years ago
nielsandriesse 6dc3184b2a Merge branch 'dev' into refactor-3 5 years ago
nielsandriesse a3382f41d4 Re-organize files 5 years ago
nielsandriesse bef616b5bd Implement NotifyPNServerJob 5 years ago
nielsandriesse 71d51a873a Further implement JobQueue 5 years ago
nielsandriesse ae81bfb610 Clean 5 years ago
nielsandriesse d80804ca5a Create JobQueue 5 years ago
nielsandriesse 28172b4ed2 Create AttachmentUploadJob & AttachmentDownloadJob
Also conform SnodeMessage to NSCoding
5 years ago