Commit graph

13 commits

Author SHA1 Message Date
Ryan Zhao 5d97754635 Merge branch 'dev' into preformance-improvement 2022-03-03 13:27:57 +11:00
Morgan Pretty 22921a6b5a Fixed a crash due to not passing the transaction when accessing the database 2022-03-03 10:37:50 +11:00
Ryan Zhao 3ab7192b26 clean up some code related to unread message (requests) count 2022-03-02 11:23:13 +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
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 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
Niels Andriesse 556e13cc72 Fix crash 2021-07-30 10:44:48 +10:00
Ryan Zhao 38a19ad2d1 don't add badge for messages with no mention 2021-07-30 09:45:28 +10:00
Ryan ZHAO fa13778d70 fix the badge number for muted threads 2021-05-14 10:20:15 +10:00
nielsandriesse 5dfd4b1965 Restructure 2020-11-25 16:15:16 +11:00
nielsandriesse 9f4d72f2f5 Make quotes work again
Also organize files
2020-11-20 10:07:36 +11:00
Niels Andriesse 72b4c3edaf WIP 2020-11-19 15:24:09 +11:00
Niels Andriesse 4f3448d75d Remove more Signal code 2020-11-19 10:37:18 +11:00
Renamed from SignalUtilitiesKit/OWSMessageUtils.m (Browse further)