Commit Graph

307 Commits (66b33b6623b04db383f02028d4162ca328c7ea26)

Author SHA1 Message Date
Ryan Zhao a31fb7f957 Merge branch 'dev' into voice-calls-2 2 years ago
Morgan Pretty 0e15c63e6b Fixed a case where a the share extension wasn't using a transaction version of a method 2 years ago
Ryan Zhao a68ed28a7a Merge branch 'dev' into voice-calls-2 2 years ago
Morgan Pretty 3e0ccaea4c Merge branch 'dev' into feature/session-id-blinding-part-2
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Utilities/MentionUtilities.swift
#	SessionMessagingKit/Sending & Receiving/Pollers/OpenGroupPollerV2.swift
#	SessionMessagingKit/Sending & Receiving/Pollers/Poller.swift
#	SignalUtilitiesKit/Messaging/Sending & Receiving/MessageSender+Convenience.swift
2 years ago
Morgan Pretty f9468219d9 Code cleanup and database transaction tweaks
Updated the OpenGroupManager to be a bit more thread safe
Updated the OpenGroupManager "isModOrAdmin" check to better support the various keys of the current user
Fixed some blinding code to use an existing transaction rather than create it's own ones
Removed the Legacy API calls, handling and types
2 years ago
Morgan Pretty 1c474955de File upload working, further code cleanup
Got the updated file upload working
Removed the legacy 'room' header
Consolidated a number of types between SOGS, FileServer and general requests
Updated the OnionRequestAPI to deal with a Data payload (rather than encoding it to a string and then back to data)
2 years ago
Morgan Pretty 8a7db1d48f Started adding logic for the outbox endpoint
Moved the BlindedIdMapping retrieval logic to ContactUtilities so it's reusable
Added the 'outbox' endpoints (need testing as they aren't deployed to test yet)
2 years ago
Ryan Zhao 52407aec03 Merge branch 'ipad-support-1' into voice-calls-2 2 years ago
Morgan Pretty a26ee12f8d Further work on Id Blinding
Renamed the setter for the SOGS 'Server' object for consistency
Updated the Curve25519Kit repo to use an Oxen fork
Updated the MockDataGenerator to accomodate the latest changes
Updated the ConversationVC to better support getting replaced when the conversion from blinded to unblinded happens while on that screen
Added a cache for the mapping between blinded ids and standard ids (gets cached whenever a valid match is found)
Added a migration to remove the old 'authToken, 'lastMessageServerId' and 'lastDeletionServerId' collections (redundant in SOGS V4)
2 years ago
Morgan Pretty 3e97782d18 Merge branch 'dev' into feature/session-id-blinding-part-2
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Conversations/ConversationVC.swift
#	Session/Meta/Translations/de.lproj/Localizable.strings
#	Session/Meta/Translations/en.lproj/Localizable.strings
#	Session/Meta/Translations/es.lproj/Localizable.strings
#	Session/Meta/Translations/fa.lproj/Localizable.strings
#	Session/Meta/Translations/fi.lproj/Localizable.strings
#	Session/Meta/Translations/fr.lproj/Localizable.strings
#	Session/Meta/Translations/hi.lproj/Localizable.strings
#	Session/Meta/Translations/hr.lproj/Localizable.strings
#	Session/Meta/Translations/id-ID.lproj/Localizable.strings
#	Session/Meta/Translations/it.lproj/Localizable.strings
#	Session/Meta/Translations/ja.lproj/Localizable.strings
#	Session/Meta/Translations/nl.lproj/Localizable.strings
#	Session/Meta/Translations/pl.lproj/Localizable.strings
#	Session/Meta/Translations/pt_BR.lproj/Localizable.strings
#	Session/Meta/Translations/ru.lproj/Localizable.strings
#	Session/Meta/Translations/si.lproj/Localizable.strings
#	Session/Meta/Translations/sk.lproj/Localizable.strings
#	Session/Meta/Translations/sv.lproj/Localizable.strings
#	Session/Meta/Translations/th.lproj/Localizable.strings
#	Session/Meta/Translations/vi-VN.lproj/Localizable.strings
#	Session/Meta/Translations/zh-Hant.lproj/Localizable.strings
#	Session/Meta/Translations/zh_CN.lproj/Localizable.strings
2 years ago
Morgan Pretty cc2a077a6c Started working on `MessageRequestResponse` handling for SOGS message requests
Pointing Curve25519 to use a fork that exposes an XEd25519 conversion method
Fixed an issue where I had broken all message sending due to the SnodeAPI casting Onion responses to `Any`
2 years ago
Ryan Zhao f22672ccd7 Merge branch 'dev' of https://github.com/oxen-io/session-ios into preformance-improvement 2 years ago
Morgan Pretty dbead5e3c8 Got the '/inbox' APIs and encryption/decryption/validation working
Added a few types to make the code more readable
Added the inbox request to the polling
Added a couple of properties to the TSContactThread to indicate the originating open group to support SOGS DMs
Added code to store the latest message id for an open group inbox
Added a bunch of documentation from the API docs into the OpenGroupAPI (and associated models)
Updated the OpenGroupAPI to match the latest docs
Fixed the incorrect structure of the SendDirectMessageRequest
Fixed an incorrect inbox endpoint path
Tweaked the batch response handling so it wouldn't fail to parse all responses if a single one failed
Renamed IdPrefix to SessionId.Prefix and cleaned up the type to be more readable & self-documenting
2 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
2 years ago
Morgan Pretty 4c89c165d8 Fixed a few bugs uncovered by QA
Fixed a bug where the ConfigurationMessage was getting generated before the contact state was persisted to the database in the message request flow causing odd behaviours (now generating the ConfigurationMessage within the same transaction)
Fixed a bug where sending a message to an existing message request thread once the message requests item has been hidden would show the message requests notification and trigger the section to re-appear on the home screen
Fixed a bug where blocked contacts weren't getting excluded from the contacts list in the configuration message
2 years ago
Morgan Pretty 582ff0997a Fixed a couple of crashes and added some mock data generation logic
Possibly fixed a crash due to a database deadlock
Fixed a crash when the first message requests gets added if there are no other threads
Added code to generate a bunch of random thread data (Needs some testing to ensure no data leaves the device)
2 years ago
Ryan Zhao a86310b0f5 improve global search performance 2 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
2 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
2 years ago
Morgan Pretty 4963a84ddd Added more unit tests for the OpenGroupAPI (fixed a couple bugs as well) 2 years ago
Morgan Pretty 051f03f4b4 PR comments and a few missed use cases
Disabled the attachments and voice message buttons for the first message
Disabled the Disappearing Messages flag for the until the conversation is approved
Fixed a bug where the recipient of a message request could incorrectly get the 'pending approval' state
Refactored some standard auto layout code to use the custom extension code
2 years ago
Ryan Zhao 63e0a5285c minor refactor to prevent dead lock 2 years ago
Morgan Pretty 9db5083cc5 Built out the Message Request functionality
Added the MessageRequestsViewController
Added a 'Message Requests' button to the settings screen
Added accept/reject buttons for message requests to the ConversationVC
Added the ability to hide the message request item on the HomeVC (re-appears if you get a new message request)
Added code to handle an edge-case where the message request approval state wouldn't be returned to the sender due to the recipient running an old version of the app
Prevented contacts which aren't associated with an approved thread from appearing when creating a closed group
Disabled notifications for threads which aren't approved
Updated the app notification count to exclude unapproved messages
Updated the app to ignore closed group creation messages if the group has no admins which are approved contacts
Fixed up the keyboard avoidance behaviour in the ConversationVC
Fixed a couple of minor interaction issues which affected some devices
Fixed an issue where the database migrations would run on the 2nd launch when creating a new account (causing odd behaviours)
2 years ago
RyanZhao 2a26eda36b
Merge pull request #531 from RyanRory/1.11.19
1.11.19 bug fixes and improvements
3 years ago
Ryan Zhao a6a297048c Merge branch 'pin-chats' into voice-calls-2 3 years ago
Ryan Zhao 1cc2f17469 pin conversations 3 years ago
ryanzhao e49431d2eb fix transaction crash 3 years ago
ryanzhao dd891063bd minor fix 3 years ago
ryanzhao 336c694b52 refactoring on showing call ip exposure 3 years ago
ryanzhao f51651ce8e minor fix on conversation ordering 3 years ago
ryanzhao 204fe789ed fix sync message in open group won't be marked as sent 3 years ago
ryanzhao ceb88f3d00 prevent disappearing message affecting the order of conversations 3 years ago
ryanzhao b7c6eafa87 fix notification preview type nested transaction crash 3 years ago
ryanzhao e91469fe0e fix nested transaction crash 3 years ago
ryanzhao 3c4a19e30d fix nested transaction crash 3 years ago
Niels Andriesse 7f0b87a2b2 Avoid unnecessary conversation screen updates 3 years ago
Niels Andriesse 6bf25e28f7 Debug 3 years ago
Niels Andriesse 9d605c03f0 Debug 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 ff1d2d2f28 Remove (seemingly) unnecessary hack 3 years ago
Niels Andriesse 3fda8daec9 Merge branch 'dev' into cleanup 3 years ago
Niels Andriesse c84a942478 Fix push notification handling
This was crashing every time the extension started
3 years ago
nielsandriesse 06f795169b Merge branch 'dev' into cleanup 3 years ago
nielsandriesse 964cb8b326 Fix new deletion method 3 years ago
nielsandriesse 47daf16d5c Merge branch 'dev' into deletion-handling 3 years ago
nielsandriesse 0c864454aa Remove duplicate message server ID tracking 3 years ago
nielsandriesse b3a6d90a1b Add missing strings 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 edd9139fe0 Manually vacuum the DB every time the app is started 3 years ago
Niels Andriesse beabf0c9c0 Implement closed group logic changes 3 years ago
Niels Andriesse 209882fb3e Correctly handle multiple untrusted attachments 3 years ago
Niels Andriesse aa68e91a4d Fix attachment download resumption 3 years ago
nielsandriesse a360fa7721 Merge branch 'dev' into deferred-attachment-downloads 3 years ago
Niels Andriesse d4b745a322 Cache open group preview images 3 years ago
Niels Andriesse 5504f74659 Show V2 open group member count 3 years ago
Niels Andriesse 516f815521 Debug 3 years ago
nielsandriesse 717fe32a73 Fix build 3 years ago
nielsandriesse 4c9728b4fe Update other APIs for V2 open groups 3 years ago
nielsandriesse a5f831fd6c Keep track of last message & last deletion server IDs 3 years ago
nielsandriesse 1d65f717b5 Add auth token handling 3 years ago
Niels Andriesse 76e5515610 Quick fix missing username bug 3 years ago
Niels Andriesse 960e500acd Don't auto-download attachments from untrusted contacts 3 years ago
Niels Andriesse 92304fa590 Clean & debug 3 years ago
Niels Andriesse b023b1be94 Fix profile updating issue 3 years ago
Niels Andriesse cf07fc1b1a Implement nicknames 3 years ago
Niels Andriesse dd0baf0d97 Unify contacts APIs 3 years ago
nielsandriesse 1924e01edc Merge branch 'multi-device' into ui 3 years ago
Niels Andriesse 90e53e5cef Redesign conversation screen part 1 3 years ago
Niels Andriesse b721794a51 Fix closed group update handling from before it was created 3 years ago
Niels Andriesse f84f94de60 Fix synced messages not being marked as sent 3 years ago
Niels Andriesse afd7a5a3dc Fix open group message syncing 4 years ago
Niels Andriesse 6b7b158000 Debug 4 years ago
Niels Andriesse 867e9114a6
Merge branch 'dev' into multi-device 4 years ago
Niels Andriesse 3e5baca72d Fix open group message deletion 4 years ago
Niels Andriesse eeef067f57 Implement message syncing 4 years ago
Niels Andriesse c1cba59a75 Debug 4 years ago
nielsandriesse e38dae5a05 Replace PublicChatManager 4 years ago
Niels Andriesse 4c4ec0c039 Remove unused code 4 years ago
Niels Andriesse a6e44ca0f0 Clean 4 years ago
nielsandriesse f5786a11fe Fix migration 4 years ago
nielsandriesse d5e1237b0c Allow admins to leave & fix remaining issues 4 years ago
Niels Andriesse 28963e252e Debug 4 years ago
Niels Andriesse da503b0df1 Update Session protocol closed groups logic 4 years ago
Niels Andriesse 71758b0c00 Remove the Signal protocol 4 years ago
Niels Andriesse ec2d784c20 Update contact model when legacy update methods are invoked 4 years ago
Niels Andriesse 9901f04dc3 Implement contacts migration 4 years ago
Niels Andriesse 9b3f71172b Implement contact storage 4 years ago
Niels Andriesse 2a4977d269 Implement Session protocol 4 years ago
Niels Andriesse efe8f1c8bb Clean 4 years ago
Niels Andriesse ec1d79ca63 Fix message duplication bug 4 years ago
nielsandriesse 5f2ec37db7 Fix message duplication bug 4 years ago
nielsandriesse f2572e4c91 Fix album message ID handling 4 years ago
Niels Andriesse 2d8933901d Fix open group display name handling 4 years ago
Niels Andriesse b621bdc69a Partially fix open groups 4 years ago
nielsandriesse d39e155e1c Make link previews work again 4 years ago
nielsandriesse 20faa8e914 Debug 4 years ago
nielsandriesse addc859c84 Fix duplicate messages & debug 4 years ago
nielsandriesse 2a57b8ab5b Fix disappearing messages 4 years ago
nielsandriesse c59fe05f8e Cancel message send job(s) if associated message/thread is deleted 4 years ago
nielsandriesse 77c1f721b9 Further debug attachment sending 4 years ago
Niels Andriesse 341782f255 Fix profile handling 4 years ago
Niels Andriesse c8e63019ab Debug 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