Commit Graph

233 Commits (a9afb2d1d10ec53ac56a14a8aafbafc587218a99)

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'
3 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
3 years ago
Morgan Pretty 394b0646a3 Updated the code to support additional session id prefixes 3 years ago
Niels Andriesse e84fc1aa04 Include destination info in error messages 4 years ago
Niels Andriesse ba60879343 Add support for new ban and delete all endpoint 4 years ago
nielsandriesse 0d9f5388da Prepare for OGS timestamp handling changes 4 years ago
Niels Andriesse 601062c9ef Fix timeSinceLastOpen usage 4 years ago
Brice-W 51ba97827d open group polling limit implementation 4 years ago
Niels Andriesse 3fda8daec9 Merge branch 'dev' into cleanup 4 years ago
Niels Andriesse e2715d1ee9 Implement sending logic 4 years ago
Niels Andriesse 7e60d3c218 Merge branch 'dev' into cleanup 4 years ago
Niels Andriesse ad801d4f33 Fix threading 4 years ago
nielsandriesse 06f795169b Merge branch 'dev' into cleanup 4 years ago
nielsandriesse 964cb8b326 Fix new deletion method 4 years ago
nielsandriesse 21acdfc835 Clean up thread model 4 years ago
Niels Andriesse d742fc1548 Delete V1 OGS & file server 4 years ago
Niels Andriesse 3daa6e8de1 Fix deletion handling 4 years ago
Niels Andriesse 4eb7d19b3e Fix initial rooms fetch 4 years ago
Niels Andriesse c747acfc04 Fix compact poll deletion handling 4 years ago
nielsandriesse deb301e5b7 Update for OGS API changes 4 years ago
Niels Andriesse e9df213bfe Put feature flags in one place 4 years ago
Niels Andriesse b516647125 Switch to production 4 years ago
Niels Andriesse cfb1d78d35 Fix compact polling auth token handling 4 years ago
Niels Andriesse f865bd8125 Enable V2 open groups 4 years ago
Niels Andriesse b85edbe900 Fix potentially duplicated requests 4 years ago
Niels Andriesse 5a242ce4e8 Debug 4 years ago
Niels Andriesse fac376bf55 Use HTTP for default session open group server 4 years ago
Niels Andriesse 4774123ad4 Update V2 open group poller for compact polling 4 years ago
Niels Andriesse 2eab06cec9 Add compact poll endpoint 4 years ago
Niels Andriesse b30d6f9add Store V2 open group auth token promises per room 4 years ago
nielsandriesse 330e4ce8ad Fix unnecessary V2 open group requests 4 years ago
Niels Andriesse b334ad3446 Update for back-end changes 4 years ago
Niels Andriesse d4b745a322 Cache open group preview images 4 years ago
Niels Andriesse 2dab160599 Actually set open group images 4 years ago
Niels Andriesse c42a694ef6 Show group images 4 years ago
Niels Andriesse 50ab253576 Add group image endpoint 4 years ago
Niels Andriesse 1e9b1520e1 Fix auth token handling 4 years ago
Niels Andriesse e5b5f2cf07 Put V2 open groups behind a feature flag 4 years ago
Niels Andriesse 44783ddfef Update ConfigurationMessage for V2 open groups 4 years ago
Niels Andriesse 7558e0b32a Re-enable joining V1 open groups 4 years ago
Niels Andriesse 5504f74659 Show V2 open group member count 4 years ago
Niels Andriesse e50f4da63e Update AttachmentDownloadJob & AttachmentUploadJob for V2 open groups 4 years ago
Niels Andriesse fd7081ee94 Add TODOs 4 years ago
Niels Andriesse a9b44b36fe Validate message signatures 4 years ago
Niels Andriesse 10224350ea Handle token expiration 4 years ago
Niels Andriesse b4f7a925d9 Keep track of moderators 4 years ago
Niels Andriesse a7dd7e1bf0 Hook up suggestion grid 4 years ago
Niels Andriesse 516f815521 Debug 4 years ago
Niels Andriesse e2814fb884 Implement open group suggestion grid 4 years ago
Niels Andriesse 6a8c717d7b Add get room info endpoint 4 years ago
nielsandriesse 717fe32a73 Fix build 4 years ago
nielsandriesse e5764264b3 Debug 4 years ago
nielsandriesse a36fa3f4f8 Debug 4 years ago
nielsandriesse 4c9728b4fe Update other APIs for V2 open groups 4 years ago
nielsandriesse a5f831fd6c Keep track of last message & last deletion server IDs 4 years ago
nielsandriesse 1d65f717b5 Add auth token handling 4 years ago
Niels Andriesse 34bbff1ab4 Implement OpenGroupAPIV2 4 years ago
Niels Andriesse dd0baf0d97 Unify contacts APIs 4 years ago
Niels Andriesse 73bbaf9ce7 Potentially fix attachment issue 4 years ago
Niels Andriesse 7acb6c9ac3 Merge branch 'dev' into multi-device 4 years ago
Niels Andriesse 54e902c848 Fix various warnings 4 years ago
Niels Andriesse 867e9114a6
Merge branch 'dev' into multi-device 4 years ago
Niels Andriesse 18c646987a Implement banning 4 years ago
Niels Andriesse 3e5baca72d Fix open group message deletion 4 years ago
Niels Andriesse c1cba59a75 Debug 4 years ago
Niels Andriesse 672026b8bf Clean 4 years ago
nielsandriesse e38dae5a05 Replace PublicChatManager 4 years ago
Niels Andriesse 451e629605 Fix open group profile picture bug
#314 without merge conflicts
4 years ago
Niels Andriesse efe8f1c8bb Clean 4 years ago
nielsandriesse d6c115bc2a Fix module linking issue 4 years ago
nielsandriesse 71df0b84f0 Fix incorrect open group message timestamp 4 years ago
nielsandriesse e8661cf4d7 Debug 4 years ago
nielsandriesse a87bad6603 Fix open group link previews 4 years ago
Niels Andriesse d01e732515 Debug open group messaging 4 years ago
Niels Andriesse 2d8933901d Fix open group display name handling 4 years ago
Niels Andriesse 8564c650a5 Parse open group attachments 4 years ago
nielsandriesse 5dfd4b1965 Restructure 4 years ago
nielsandriesse 178ab7e3e2 WIP 5 years ago
nielsandriesse 262c5ebe4a Fix incorrect tag 5 years ago
nielsandriesse b88bfd1da0 Configure SessionMessagingKit 5 years ago
nielsandriesse 1c0b32af3c Fix ECKeyPair usage 5 years ago
nielsandriesse 505370f8d6 Implement open group message conversion 5 years ago
nielsandriesse 362e2e9c03 Update SessionMessagingKit for open groups 5 years ago