Commit Graph

25 Commits (f9c2655df48154c41a174417fdead6ac8b869e2b)

Author SHA1 Message Date
Morgan Pretty 17a9e510c5 Further work on unit tests (and a couple of bug fixes found when testing)
Removed a couple remaining TODOs
Added 'standardUserDefaults' to the 'Dependencies' type
Tweaked the OpenGroupAPI to only update the 'lastOpen' timestamp if it successfully polls
Refactored a couple of methods in the ConversationViewItem into swift so we can clean up the OpenGroupAPI more
Updated the OpenGroupAPI so it no longer has static variables for state (shifted to the OpenGroupManager and made them instance variables)
Fixed an encoding issue with the Capabilities.Capability
4 years ago
Morgan Pretty faa8918cd4 Replaced the remaining non-file legacy methods with their non-legacy equivalents
Updated the OpenGroup polling to run on a non-main thread
Updated the TSGroupModel to store moderatorIds as well as the adminIds (new endpoint is only going to give diffs)
Updated the BatchRequest to support json, base64 encoded strings and raw bytes for it's body
Replaced the 'lastMessageServerID' methods with 'OpenGroupSequenceNumber' methods (since we have swapped the property over)
Added an alert when banning fails (previously it would fail silently)
Fixed a bug where sent blinded messages were appearing as incoming messages
Fixed a bug where the OpenGroup infoUpdates wasn't getting decoded correctly
Fixed an issue where the ConversationVC wouldn't become the first responder again after the ban alerts disappeared
Fixed an issue where I'd incorrectly used the message 'seqNo' in place of the message server id
Fixed an issue where open group messages were setting their `sentTimestamp` to seconds instead of milliseconds for incoming messages
4 years ago
Morgan Pretty ef09d4d5aa Additional encryption work on id blinding
Got the updated blinding logic working (at least when authenticating a request - still need to deal with message signing and verification)
Storing the server capabilities in the database now so we can correctly blind requests based on them
Renamed the remaining 'v2' functions and classes to just be 'OpenGroup' since there isn't a 'V2' anymore
Cleaned up a few TODOs and functions
4 years ago
Morgan Pretty b655882cbd Started resolving TODOs
Added some new properties to the OpenGroupV2
Moved a number of methods and variables from OpenGroupAPI to OpenGroupManager (anything doing actual logic)
Moved the message signing into the OpenGroupAPI (since that's the only place it happens)
Renamed remaining old model classes to start with 'Legacy' to make clean up easier
Updated the OpenGroupAPI poll method to use the same logic as it previously did to determine if it should retrieve recent messages or messages since the last one
4 years ago
Morgan Pretty 63e6cdd9ec Renamed OpenGroupAPIV2 to OpenGroupAPI
Added the inbox endpoints
4 years ago
Ryan Zhao bcc5da75b6 minor fix on debug mode to prevent crashing 4 years ago
ryanzhao 76a96c31bf add flag to disable unsend request for now 4 years ago
ryanzhao 278f962488 clean & rollback to fix the issue that the date will not show after a message has been deleted 4 years ago
Ryan Zhao eaab6ee22d deleted message UI in conversation screen 4 years ago
ryanzhao 8d53a775d2 Revert "delete real message and sync message together"
This reverts commit cc17a952e0.
4 years ago
ryanzhao cc17a952e0 delete real message and sync message together 4 years ago
Ryan Zhao 5f6da0739e delete message on storage server 4 years ago
Ryan Zhao e8f0d0d124 WIP: delete from storage server 4 years ago
Ryan Zhao adcca5d1e1 WIP: delete message in storage server 4 years ago
Ryan Zhao 6aa865e7b7 delete locally and send unsend request 4 years ago
nielsandriesse e1ad33e832 Clean 5 years ago
nielsandriesse a098ba7125 Remove unused code 5 years ago
nielsandriesse 717fe32a73 Fix build 5 years ago
nielsandriesse c6f4443eed Update more logic for V2 open groups 5 years ago
Niels Andriesse d30fd2fb07 Clean 5 years ago
Niels Andriesse d21d6836a9 Implement rough conversation search 5 years ago
Niels Andriesse 90e53e5cef Redesign conversation screen part 1 5 years ago
Niels Andriesse 18c646987a Implement banning 5 years ago
Niels Andriesse 3e5baca72d Fix open group message deletion 5 years ago
nielsandriesse a915c5ddaa Re-organize files 5 years ago