Commit Graph

16208 Commits (949b043867702c5bf471afeeb7552a25c0e401fb)
 

Author SHA1 Message Date
RyanZhao 6573610ee9
Merge pull request #559 from mpretty-cyro/feature/message-requests
Message Requests Phase 1
2 years ago
Morgan Pretty 028ba0c77a Merge branch 'dev' into feature/message-requests
# Conflicts:
#	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 c7196a96bc Merge remote-tracking branch 'upstream/dev' into dev 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
Ryan Zhao 66567ba9f5 clean 2 years ago
Ryan Zhao c85e3ef86b clean up unused code 2 years ago
Ryan Zhao 7a677a1800 move pollers to one working queue to avoid race condition 2 years ago
Morgan Pretty 819d5a39e1 Disabled the disappearing message settings for the recipient of a message request as well 2 years ago
Ryan Zhao b32a8cbab2 fix alert vc for iPad 2 years ago
Ryan Zhao a8c7f517eb clean 2 years ago
Ryan Zhao 24d8122d78 fix sharing UI for iPad 2 years ago
Ryan Zhao 348331d9ab fix present view controller UI issue for iPad 2 years ago
Ryan Zhao 9ff369fbd0 fix settings screen presentation on iPad 2 years ago
Ryan Zhao efab374e7f refactor on session search bar decoration 2 years ago
Ryan Zhao ab0714af00 fix search bar cancel button for iPad 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
Ryan Zhao 97bf861809 Merge branch 'dev' of https://github.com/oxen-io/session-ios into preformance-improvement 2 years ago
RyanZhao 164201de4f
Merge pull request #563 from RyanRory/fix-swiping-to-reply
Fix swiping to reply
2 years ago
RyanZhao ea68749b8d
Merge pull request #564 from mpretty-cyro/feature/menuLabels
Added labels to the new conversation buttons
2 years ago
Ryan Zhao d61f36211d bump up to show 500 global search results for all cases 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
ryanzhao d27faf551b reduce unnecessary database read 2 years ago
ryanzhao 7c2e25e25a remove useless code 2 years ago
ryanzhao cd97b9c3e8 minor fix on poller threading 2 years ago
ryanzhao 5954c109a1 Fix an issue where message would be sent even though the attachments are failed to upload 2 years ago
Morgan Pretty e1cc9cde0e Added labels to the NewConversationButtonSet (part 2) 2 years ago
Morgan Pretty 30cbe77366 Added labels to the NewConversationButtonSet 2 years ago
Morgan Pretty 2d6dad67eb Added back another missing localised string 2 years ago
Morgan Pretty 948cbe2c0b Updated a couple of comments 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
ryanzhao b2ab984586 refactor on timer and polling threading 2 years ago
Morgan Pretty 6f1a8fcdc5 Fixed a bug where the most recent message couldn't be interacted with due to message request UI changes 2 years ago
Ryan Zhao eec3d31109 WIP: timer + main thread 2 years ago
Ryan Zhao d21c5329e3 further improvements to move poller into background threads 2 years ago
Ryan Zhao e428333b7b minor update to reduce database read on ui thread 2 years ago
Ryan Zhao cb127be5a2 minor clean 2 years ago
Ryan Zhao 6d99976a9c database migrate for unread mention 2 years ago
Morgan Pretty f5e48cec01 Updated the project to use the Oxen fork of Sodium (instead of my one) 2 years ago
Ryan Zhao 36907d3af0 improve mention and unread message count 2 years ago
Morgan Pretty 47314bd639 Added a notification to indicate the user has a new message request
Fixed a bug where the notification count could be increased for message requests
Fixed a bug where an approved contact could be 'unapproved' due to an order of execution issue when generating the config sync message
Fixed a check to avoid registering for push notifications when on the simulator (old check didn't cater for M1 Macs)
Moved the 'hasHiddenMessageRequests' into the group user defaults so it can be accessed within the notification extension
Added code to handle an edge case where an old client could incorrectly un-approve a contact via a legacy configuration message
2 years ago
Ryan Zhao 16c9b7793a move pollers to background threads 2 years ago
Ryan Zhao a86310b0f5 improve global search performance 2 years ago
Morgan Pretty dfbee2a520 Removed the single message restriction from message requests (still text only) 2 years ago
Morgan Pretty 1edd500dab Updated to the latest blinding behaviour
Added a couple more dependencies for unit testing injection
Updated the MessageSender to set the sender of the message to the appropriate blinded/unblinded key
Updated the OpenGroup Message to handle verification of both blinded and unblinded messages
Updated the MessageSender to use dependency injection for it's sendToOpenGroupDestination method
Updated the JSONDecoder to support getting dependencies (for signature verification)
Fixed tests broken by updating the signing logic
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
Ryan Zhao e8e120666b move message poller to back ground thread 2 years ago
Ryan Zhao 6c64d580b8 move open group polling to background thread 2 years ago
Morgan Pretty 3639a21bc8 Fixed bugs raised by QA
Added some missing localised strings
Prevented 'Read' and 'Typing' indicators from functioning on Message Requests
Prevented link previews on the first message of a message request
Added a confirmation alert when trying to clear all message requests
Added a confirmation alert when trying to delete a message request
Added an empty state to the MessageRequestsViewController
Updated the back behaviour of the ConversationVC to behave more nicely with approving/declining message requests
Updated the OWSBlockingManager to also update the stored contacts 'isBlocked' flag to match
2 years ago
Ryan Zhao a8fd6d9d18 fix home screen not reloading when coming into foreground 2 years ago
Ryan Zhao cc1b1e8c51 poll for open groups in NSE 2 years ago