Commit Graph

100 Commits

Author SHA1 Message Date
Morgan Pretty 07658b8893 Changed the labels on the conversation menu items to be bold 2022-03-16 11:41:30 +11:00
Ryan Zhao 1fb4952f5e Merge branch 'dev' into preformance-improvement 2022-03-02 11:31:53 +11:00
Ryan Zhao e243fb8817 fix unread message request count issues 2022-03-02 11:31:33 +11:00
Ryan Zhao daf0705d42 Merge branch 'dev' into preformance-improvement 2022-03-02 10:53:42 +11:00
Ryan Zhao 167d68870a show conversation settings button after approving message requests 2022-03-02 10:50:15 +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 78e2c4f55c minor refactor in search bar & message request vc 2022-03-01 11:21:07 +11:00
Ryan Zhao 7e92391740 Merge branch 'dev' of https://github.com/oxen-io/session-ios into preformance-improvement 2022-03-01 10:30:51 +11:00
Morgan Pretty 110c7bb01a Addressed PR comments
Moved the 'backBarButtonItem' into the BaseVC (and removed it for being duplicated in various view controllers)
Removed a redundant line of code
2022-03-01 10:25:54 +11:00
Morgan Pretty e6b941ea8a Fixed a number of tweaks and bugs with message requests
Removed the "Back" text from the back buttons
Removed the inset on the 'Path' settings button so the text remains horizontally centered
Hid the settings button from message request threads
Fixed an issue where the back button would remain visible in a conversation when the search field was visible
Fixed an issue where the tintColor of the conversation search field didn't match the global search field
Fixed an issue where sending an attachment response to a message request wouldn't approve the message request
Updated the size and positioning of the message request 'Clear All' button to match the DM 'Next' button
Updated the message request 'Clear All' button to start visible (so it's visible during the push animation) since that's the most likely state it'll be in
Updated the 'Message Requests' cell to use the pinned background colour
Updated the fallback for contact thread names to be a middle-truncated string (4 characters either side)
2022-02-28 17:23:34 +11:00
Ryan Zhao f22672ccd7 Merge branch 'dev' of https://github.com/oxen-io/session-ios into preformance-improvement 2022-02-25 14:58:20 +11:00
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
2022-02-25 12:48:38 +11:00
Ryan Zhao 97bf861809 Merge branch 'dev' of https://github.com/oxen-io/session-ios into preformance-improvement 2022-02-24 09:53:31 +11:00
Ryan Zhao d61f36211d bump up to show 500 global search results for all cases 2022-02-24 09:43:21 +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
ryanzhao d27faf551b reduce unnecessary database read 2022-02-23 15:49:19 +11:00
Morgan Pretty e1cc9cde0e Added labels to the NewConversationButtonSet (part 2) 2022-02-22 16:59:33 +11:00
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)
2022-02-22 15:51:17 +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
Ryan Zhao a86310b0f5 improve global search performance 2022-02-21 13:20:34 +11:00
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
2022-02-17 16:29:14 +11:00
Ryan Zhao a8fd6d9d18 fix home screen not reloading when coming into foreground 2022-02-17 15:31:27 +11:00
Morgan Pretty 6009c30805 Removed a resolved todo and fixed some variable naming 2022-02-11 17:17:09 +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 16f6d49cec add note to self to the default global search screen with empty search text 2022-01-28 09:59:05 +11:00
Ryan Zhao 124d908686 add author for group messages 2022-01-27 16:39:22 +11:00
Ryan Zhao be1fb789e8 hide recent search results behind the flag 2022-01-27 15:32:19 +11:00
Ryan Zhao d329740bd4 add clear for recent search results 2022-01-27 14:56:59 +11:00
Ryan Zhao 85c4b3d745 show recent search result as default for global search screen 2022-01-27 14:19:07 +11:00
Ryan Zhao a2db4a8330 add comments 2022-01-25 16:55:48 +11:00
Ryan Zhao 79fc9459a4 clean 2022-01-25 16:54:21 +11:00
Ryan Zhao 78af18413f show at most 500 search results 2022-01-25 16:43:03 +11:00
Ryan Zhao d583422c73 add some comments 2022-01-25 16:31:30 +11:00
Ryan Zhao 20a3b6ee26 move path button into setttings 2022-01-25 15:56:23 +11:00
Ryan Zhao 2a229bd663 minor fix 2022-01-25 15:25:48 +11:00
Ryan Zhao 68ec1654e8 rebuild global search UI 2022-01-25 15:04:11 +11:00
Ryan Zhao e718cee611 WIP: rebuild global search UI 2022-01-25 09:46:22 +11:00
Ryan Zhao 3cc6a6b7c4 add comments 2022-01-24 11:55:37 +11:00
Ryan Zhao 0ddb4f355a minor improvements on dismissing the keyboard 2022-01-24 11:43:32 +11:00
Ryan Zhao 8be5768ad2 snippet for group members 2022-01-20 15:33:31 +11:00
Ryan Zhao 037d70b185 handle seed view reminder and search bar 2022-01-20 12:13:25 +11:00
Ryan Zhao c1c5678056 implement animation for selected search result message flickering 2022-01-20 10:48:01 +11:00
Ryan Zhao 5c112064da UI improvements on contact search results 2022-01-19 10:54:00 +11:00
Ryan Zhao 994a2e9c89 hide cancel button when the keyboard is hidden 2022-01-18 15:28:54 +11:00
Ryan Zhao aeabaea0ca fix no search results shown accidentally 2022-01-18 15:11:39 +11:00
Ryan Zhao 9d9a3f92cb minor UI fix 2022-01-18 14:04:10 +11:00
Ryan Zhao 3a626ed80a fix a deadlock issue 2022-01-18 13:35:53 +11:00
ryanzhao 10abbb0552 search result view UI 2022-01-17 16:56:51 +11:00
ryanzhao fed1218538 WIP: global search UI 2022-01-14 16:41:36 +11:00
ryanzhao 9ec749285f minor clean 2022-01-13 11:45:05 +11:00