Commit Graph

13 Commits

Author SHA1 Message Date
Morgan Pretty 4f3900771e More work on getting SOGS V4 integrated
Updated the MessageSendJob to support V4 messages (V2 messages will be upgraded to V4 if they get re-encoded)
Renamed the Message+Destination from 'openGroup' & 'openGroupV2' to 'legacyOpenGroup' and 'openGroup'
Started plugging in more of the V4 APIs
Renamed a number of the V2 APIs to start with 'legacy'
2022-02-11 16:48:16 +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 1b4cfdb22f Add get Session version file server endpoint 2021-05-28 14:28:59 +10:00
Niels Andriesse 3fda8daec9 Merge branch 'dev' into cleanup 2021-05-20 16:25:59 +10:00
Niels Andriesse 5e1a33c32e Switch to dedicated server 2021-05-20 11:02:34 +10:00
Niels Andriesse cdf27a631a Fix profile picture handling 2021-05-14 10:55:17 +10:00
Niels Andriesse 38a7c93967 Fix profile picture handling 2021-05-13 16:11:21 +10:00
Niels Andriesse bd04775cbf Implement open group invitations UI 2021-05-07 13:10:21 +10:00
Niels Andriesse d742fc1548 Delete V1 OGS & file server 2021-05-04 15:46:48 +10:00
Niels Andriesse e9df213bfe Put feature flags in one place 2021-04-27 08:53:18 +10:00
Niels Andriesse f7613e09bf Convert remaining file server usages 2021-04-26 16:20:07 +10:00
Niels Andriesse 0ceb434215 Update AttachmentUploadJob for the V2 file server 2021-04-26 16:01:02 +10:00
Niels Andriesse 3e11c505e2 Create FileServerAPIV2 2021-04-26 15:34:53 +10:00