Commit graph

152 commits

Author SHA1 Message Date
Ryan Zhao 30e1f34782 fix configuration message may include contacts that shouldn't be visible 2022-03-10 17:22:39 +11:00
Ryan Zhao b632f6a925 avoid conflicts with call beta in TSInfoMessageType 2022-03-09 11:48:49 +11:00
Ryan Zhao 60e8da3bff Merge branch 'dev' into preformance-improvement 2022-03-08 11:08:45 +11:00
Morgan Pretty af543b980b Made a couple of changes to how the ConfigurationMessage is generated and handled
Stopped configuration messages from automatically creating threads for sync'ed contacts (now they will only be created if there are messages)
Updated the ConfigurationMessage to stop truncating the list of contacts but filter the full set (also update the logic to include previously approved contacts)
2022-03-07 10:22:46 +11:00
Morgan Pretty decb946bf3 Fixed an unrecognised selector crash hidden by the conversion of Objective-C to Swift 2022-03-04 17:17:58 +11:00
Ryan Zhao daf0705d42 Merge branch 'dev' into preformance-improvement 2022-03-02 10:53:42 +11:00
Morgan Pretty 1b3f6c0ca6 Minor tweaks to the message request banner on the HomeVC
Fixed the unread message counting for message requests
Updated the message request banner to indicate the number of message requests with an unread message
Updated the message request banner to automatically disappear if the user has no unread message requests
Renamed a variable for ReadReceipt management to make it a bit more self-documenting (it looked like it would trigger a read receipt to be sent regardless of the setting)
2022-03-01 17:25:53 +11:00
Ryan Zhao 1609812e5b remove useless expiration flag in data message 2022-03-01 17:15:38 +11:00
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
2022-02-23 17:12:57 +11:00
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
2022-02-21 14:48:53 +11:00
Morgan Pretty ad9282a7b9 Removed 'publicKey' from the MessageRequestResponse and updated logic to use 'message.sender' isntead 2022-02-11 10:47:27 +11:00
Morgan Pretty cd61fb8df0 Merge branch 'dev' into feature/message-requests
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	SignalUtilitiesKit/Utilities/UIColor+Extensions.swift
2022-02-04 11:49:54 +11:00
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)
2022-02-02 16:59:56 +11:00
Ryan Zhao 5ce7aa49ee mark messages with undownloaded attachments as read as well 2022-02-01 15:12:48 +11:00
ryanzhao 49688c0a2d potentially fix a crash when setting nickname from null 2021-10-01 15:06:33 +10:00
ryanzhao dcd3997a78 fix an issue where untrusted contact's media message will never be marked as read 2021-09-14 15:10:01 +10:00
ryanzhao d319840c04 clean unused server timestamp 2021-08-23 11:15:05 +10:00
ryanzhao da335a8401 clean 2021-08-23 11:10:45 +10:00
ryanzhao 132ff0416f set server timestamp as open group message's sent timestamp 2021-08-23 11:10:22 +10:00
ryanzhao 0ed748074b remove deleted message for linked devices 2021-08-09 17:07:06 +10:00
Ryan Zhao eaab6ee22d deleted message UI in conversation screen 2021-08-05 13:34:07 +10:00
ryanzhao 8d53a775d2 Revert "delete real message and sync message together"
This reverts commit cc17a952e0.
2021-08-04 14:48:32 +10:00
ryanzhao cc17a952e0 delete real message and sync message together 2021-08-04 11:49:21 +10:00
Ryan Zhao 050a2ec534 store server hash value for visible messages 2021-08-02 15:24:38 +10:00
Ryan Zhao c68350f3d8 store hash value for outgoing messages 2021-08-02 14:49:34 +10:00
Ryan Zhao e2a0578770 cancel local notifications for unsend requests 2021-08-02 14:03:46 +10:00
Ryan Zhao b827b9e1ba make it work for multi device 2021-08-02 10:32:47 +10:00
Ryan Zhao dff99cf0fc add unsend request proto 2021-07-30 14:21:30 +10:00
Ryan Zhao 423feae426 add notify reply and clean 2021-07-30 09:43:05 +10:00
Niels Andriesse 44288c45e9 Fix auto scroll to bottom bug 2021-07-22 11:10:30 +10:00
ryanzhao 69dea75486 potentially fix the conversation stuck at unread 2021-07-20 14:06:23 +10:00
Niels Andriesse 356dc0cc4f Clean up indentation 2021-07-07 15:09:09 +10:00
Brice-W 2f0fe36905 add expiration timer to configuration message 2021-06-21 14:21:34 +10:00
Brice-W a840d61f4e delete obsolete code 2021-06-21 14:21:11 +10:00
Niels Andriesse 7bb7edd3c0 Further cleanup 2021-06-11 11:11:16 +10:00
Niels Andriesse b090227a2d Fix potential crash & apply code convention 2021-06-11 11:01:08 +10:00
Brice-W 1f9cd92bce set expiration timer for new group members 2021-06-10 11:51:38 +10:00
Niels Andriesse 3fda8daec9 Merge branch 'dev' into cleanup 2021-05-20 16:25:59 +10:00
Niels Andriesse 61dd768e5c Minor refactoring 2021-05-20 16:22:11 +10:00
Ryan ZHAO d7a7abc11e start expiration timer after attachments downloaded 2021-05-14 15:38:06 +10:00
Niels Andriesse e4d1925436 Show confirmation dialog 2021-05-07 15:18:57 +10:00
Niels Andriesse f3fef34259 Implement proto conversion 2021-05-07 14:53:28 +10:00
Niels Andriesse e2715d1ee9 Implement sending logic 2021-05-07 14:08:52 +10:00
Niels Andriesse bd04775cbf Implement open group invitations UI 2021-05-07 13:10:21 +10:00
nielsandriesse ed047ac512 More cleanup 2021-05-05 14:50:46 +10:00
nielsandriesse 06f795169b Merge branch 'dev' into cleanup 2021-05-05 14:10:19 +10:00
nielsandriesse a098ba7125 Remove unused code 2021-05-05 12:13:48 +10:00
nielsandriesse 05d688a6d3 Add missing enum case 2021-05-05 10:53:44 +10:00
nielsandriesse 955e3abdad Clean up group update handling 2021-05-05 10:38:09 +10:00
nielsandriesse 49f3b9f7db Rename contactIdentifier → contactSessionID 2021-05-05 10:00:39 +10:00