Commit Graph

170 Commits (387b5f953b8a7cadbc68b96ec830c2b87b0ea202)

Author SHA1 Message Date
Morgan Pretty c90f346d6a Further SOGS V4 integration work
Added in the v4 onion requests logic
Added in the new pin/unpin APIs
Split up additional legacy methods to try and simplify the refactoring
Added a number of TODOs around usage of legacy request methods
2 years ago
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'
2 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
2 years ago
Morgan Pretty 49dd52a1fb Added code to support generating a derived key for id blinding 2 years ago
Morgan Pretty 4d62ddbd77 Merge branch 'dev' into fix/safari-sharing
# Conflicts:
#	Podfile.lock
2 years ago
Ryan Zhao 18fea4ab73 Merge branch 'dev' into global-search 2 years ago
Morgan Pretty 09d63456b6 Merge branch 'dev' into fix/safari-sharing
# Conflicts:
#	Podfile
#	Podfile.lock
#	Session.xcodeproj/project.pbxproj
2 years ago
Morgan Pretty 03fb5cbeeb Cleanup and tweaks
Fixed some compilation issues.
Removed an unused dependency.
Cleaned up the Podfile to minimise duplication.
Pointed at an oxen fork of SignalCoreKit instead of a personal one.
2 years ago
Ryan Zhao 42903d835d search for name and nickname 3 years ago
Ryan Zhao 8be5768ad2 snippet for group members 3 years ago
ryanzhao fed1218538 WIP: global search UI 3 years ago
Morgan Pretty a7661da41a Revert "Fixed M1 build issues"
This reverts commit ba1a0a2ac6.
3 years ago
Morgan Pretty f02f53fc49 Added code to show a HTTP LinkPreview error
Added code to indicate the app won't load LinkPreviews for HTTP urls.
Updated the title & subtitle layout to better handle LinkPreview errors.
Missed an Objective C change in the last commit.
3 years ago
Morgan Pretty ba1a0a2ac6 Fixed M1 build issues
Included the Podfile changes for building on an M1 Mac (Need to shift from personal to session fork).
Fixed some additional build issues due to unwrapping a non-optional type (Swift version?).
3 years ago
ryanzhao ecf92ceeea fix PN sound settings not applying to remote PNs 3 years ago
ryanzhao b7c6eafa87 fix notification preview type nested transaction crash 3 years ago
Niels Andriesse 4f9d77017a Fix message updating race condition 3 years ago
Niels Andriesse b8c4e6aa93 Avoid unnecessary conversation screen updates 3 years ago
Niels Andriesse 7f0b87a2b2 Avoid unnecessary conversation screen updates 3 years ago
Niels Andriesse ca862096b4 Rename profilePictureEncryptionKey → profileEncryptionKey 3 years ago
Niels Andriesse 519ffa4405 Fully switch to the new contact API
This should improve performance significantly as it avoids many unnecessary sync transactions. It also makes the code more readable.
3 years ago
nielsandriesse bf9d860214 Batch thread updates 3 years ago
nielsandriesse 06f795169b Merge branch 'dev' into cleanup 3 years ago
nielsandriesse a098ba7125 Remove unused code 3 years ago
nielsandriesse 49f3b9f7db Rename contactIdentifier → contactSessionID 3 years ago
nielsandriesse 21acdfc835 Clean up thread model 3 years ago
Niels Andriesse d742fc1548 Delete V1 OGS & file server 3 years ago
Niels Andriesse f552d51423 Remove unused code 3 years ago
Niels Andriesse 2f67073a5a Implement new snode pool updating method 3 years ago
Ryan ZHAO cf148fe845 handle access to selected photos & optimise the process of request photo library permission 3 years ago
Niels Andriesse aaa0d736ed Fix desktop attachment compatibility 3 years ago
Niels Andriesse dd0baf0d97 Unify contacts APIs 3 years ago
Niels Andriesse c12593775c Fix potential padding issue 3 years ago
Niels Andriesse 90e53e5cef Redesign conversation screen part 1 3 years ago
Niels Andriesse 4a922c9f96 Merge branch 'extensions' into closed-groups 4 years ago
Niels Andriesse bbac6cc5ed Attempt to fix extensions 4 years ago
Niels Andriesse c9c83da3dc Rename ClosedGroupUpdateV2 → ClosedGroupControlMessage 4 years ago
nielsandriesse 7d91062849 Fix voice messages not playing if device is muted 4 years ago
Niels Andriesse b2ef12a1df Reduce code duplication 4 years ago
Niels Andriesse 4c4ec0c039 Remove unused code 4 years ago
nielsandriesse d5e1237b0c Allow admins to leave & fix remaining issues 4 years ago
Niels Andriesse 71758b0c00 Remove the Signal protocol 4 years ago
Niels Andriesse 2a4977d269 Implement Session protocol 4 years ago
Niels Andriesse 0ce74e9a8e Fix desktop compatibility issue 4 years ago
nielsandriesse 3c3f1ed7b8 Disable problematic code 4 years ago
Niels Andriesse efe8f1c8bb Clean 4 years ago
Niels Andriesse 905b829de2 Refresh snode pool at least once a day 4 years ago
Niels Andriesse 91a75a65b1 Handle group messages in PNs 4 years ago
nielsandriesse d6c115bc2a Fix module linking issue 4 years ago
nielsandriesse 000249b744 Debug 4 years ago
nielsandriesse 4dda59b446 Debug attachment receiving 4 years ago
nielsandriesse 77c1f721b9 Further debug attachment sending 4 years ago
Niels Andriesse 4942da1d23 Send read receipts again 4 years ago
Niels Andriesse ac6baec6f2 Make things compile again 4 years ago
nielsandriesse 1037ce5113 WIP 4 years ago
nielsandriesse 5dfd4b1965 Restructure 4 years ago
nielsandriesse 178ab7e3e2 WIP 4 years ago
Niels Andriesse 64cf19f461 Improve job error handling 4 years ago
nielsandriesse b218a16b05 Implement attachment downloading 4 years ago
nielsandriesse 6dc3184b2a Merge branch 'dev' into refactor-3 4 years ago
nielsandriesse f706e38ef7 Debug 4 years ago
nielsandriesse e819d8f536 Update dependencies 4 years ago
nielsandriesse 1c0b32af3c Fix ECKeyPair usage 4 years ago
nielsandriesse 362e2e9c03 Update SessionMessagingKit for open groups 4 years ago
nielsandriesse a3382f41d4 Re-organize files 4 years ago
nielsandriesse 8f443a38af Re-implement message wrapping 4 years ago
nielsandriesse 21fe9558a4 Partially implement messaging kit encryption & decryption 4 years ago
nielsandriesse a782f36aa4 Clean 4 years ago
nielsandriesse 40098ac180 Partially implement receiving pipeline 4 years ago
nielsandriesse 2d618cc6e9 Re-add proof of work 4 years ago