Commit graph

1624 commits

Author SHA1 Message Date
ryanzhao e2e77f3e50 Merge branch 'dev' into ui-media-message 2022-09-13 15:32:37 +10:00
ryanzhao 747695c39b minor fix on threading issue 2022-09-13 15:12:42 +10:00
ryanzhao 2e67bc9374 feat: automatically open the community conversation if tapping on suggestion grids to join 2022-09-13 14:36:11 +10:00
ryanzhao d840204bc2 Merge branch 'dev' into add-documents-section 2022-09-13 11:59:25 +10:00
Morgan Pretty 93c2f0f503 Fixed some bugs with disappearing messages
Fixed an issue where the DisappearingMessages job could incorrectly overwrite it's nextRunTimestamp
Fixed an issue where sent/self-send messages wouldn't correctly trigger the disappearing messages job
Fixed an issue where sending the mnemonic along with an attachment wasn't showing the warning prompt
Fixed an issue where the home screen wasn't updating on launch if the displayed messages were removed disappearing messages
Fixed a small UI glitch where the input field wouldn't immediately get cleared when sending a message (unfortunately there is a slight delay before the message appears still)
2022-09-13 10:51:26 +10:00
Ryan Zhao 82aa2d0931 minor refactor 2022-09-12 16:31:55 +10:00
Ryan Zhao e7778725a5 feat: add close button on new conversation screens 2022-09-12 15:08:14 +10:00
Ryan Zhao ec8b9df3bb minor tableview tweaks 2022-09-12 14:42:49 +10:00
Ryan Zhao 6e3c80c16b feat: search contacts in create closed group page 2022-09-12 13:52:13 +10:00
Ryan Zhao 67a9047df7 update grey background color 2022-09-12 13:10:51 +10:00
Ryan Zhao 4394e64d9b update enter public key explanation content 2022-09-12 11:16:56 +10:00
Ryan Zhao 52449d6522 minor colour adjustment 2022-09-12 10:47:44 +10:00
Ryan Zhao 3e30ceb032 feat: long press to show copy on current user's public key label 2022-09-12 10:00:03 +10:00
ryanzhao e5c3c23e74 WIP: new closed group vc 2022-09-09 17:14:55 +10:00
Morgan Pretty c707a2f80c Started refactoring the conversation image picker screens
Fixed a bug where returning from the background on the conversation screen would result in the input view being hidden
Refactored the PhotoCollectionPickerViewController to use the SettingsTableViewController convention
Updated the SettingsTableViewModel to worked based on Combine instead of the DatabaseObservable so it's more reusable for non-db cases
2022-09-08 11:22:36 +10:00
Morgan Pretty face9da02b Fixed search performance, started styling in-conversaiton settings
Fixed a bug where the scroll to bottom button wasn't working
Fixed an issue where searching was running on the main thread (which could cause UI issues)
Updated the searching to interrupt the previous query when the search term changes
Updated the in-conversation settings to be use the new config-based approach (deleted the OWSConversationSettingsViewController)
2022-09-07 17:37:01 +10:00
ryanzhao df140584e7 feat: add tapping function for contacts in new conversation screen 2022-09-07 16:40:14 +10:00
ryanzhao 2213a99330 ui: new conversation screen contacts table 2022-09-07 16:24:33 +10:00
ryanzhao 87c2bc3700 tweaks on the logic to suspend database when call is ended in background 2022-09-07 10:46:39 +10:00
ryanzhao 39e2e052ee WIP: implement sorting and grouping contacts 2022-09-07 10:12:27 +10:00
ryanzhao 9f75f10d6a centre align the last open group suggestion if there is only one of them 2022-09-06 13:01:34 +10:00
ryanzhao b3ddea1626 update translation 2022-09-06 12:26:08 +10:00
ryanzhao 7c1d332763 move database suspending logic when handling calls in background after writeAsync 2022-09-06 12:16:58 +10:00
ryanzhao 9419f83f43 put back accidentally removed code 2022-09-06 12:09:21 +10:00
ryanzhao b2869b7538 refactor on layouts 2022-09-06 11:42:44 +10:00
ryanzhao 8ad21ba089 add tap gesture 2022-09-06 11:42:29 +10:00
ryanzhao 6aa37d4d98 Merge branch 'dev' into menu-redesign 2022-09-06 09:47:41 +10:00
Ryan Zhao ae7895c18e fix a issue where the call info message won't be updated 2022-09-05 17:14:29 +10:00
Ryan Zhao d42088e37c fix an edge case where the isCallOngoing will always be true 2022-09-05 15:45:30 +10:00
Ryan Zhao 62d730ea30 fix call notification title and content 2022-09-05 15:44:42 +10:00
Ryan Zhao e3479107f3 feat: give more time for calls to connect 2022-09-05 13:31:25 +10:00
Ryan Zhao 31605672e2 fix call threading issues 2022-09-05 11:27:25 +10:00
Morgan Pretty b029728b6c Did some more theming, removed some files and fixed a couple of minor call issues
Applied theming logic to the ConversationTitleView, blocked banner
Removed a few redundant modals (replaced them with the "Confirmation Modal")
Removed some duplicate code
Fixed an issue where a synchronous start/stop behaviour was running on the main thread causing some UI blocking
Fixed an issue where the minimised call view could be covered by presenting view controllers
2022-09-02 17:32:13 +10:00
ryanzhao 80894bc198 suspend database when call is ended in background 2022-09-02 17:04:15 +10:00
ryanzhao a5ede8c6a2 fix a case when the app goes into background with an ongoing call 2022-09-02 16:59:50 +10:00
ryanzhao 87577e9d4b resume database when there is a VoIP call notifcation 2022-09-02 16:37:48 +10:00
ryanzhao 3d0239d31b fix missed call notification content 2022-09-02 14:31:57 +10:00
Ryan Zhao 3cfee13768 minor refactor to prevent fake calls 2022-09-01 16:27:21 +10:00
Ryan Zhao 85fc22110f fix selected emoji not shown in the popup list 2022-09-01 15:09:02 +10:00
Ryan Zhao bd0614532e feat: add cancel button for emoji search bar 2022-09-01 11:40:34 +10:00
Ryan Zhao e5a46a993d update emoji names for searching 2022-09-01 11:23:50 +10:00
Ryan Zhao ed3dcf7634 add comments and minor refactor back to previous logic 2022-09-01 10:51:40 +10:00
ryanzhao e6e97684b4 fix 6 reactors case in user list 2022-08-31 17:50:16 +10:00
Morgan Pretty b47e5accd6 Updated some more message types and modals
Added a disabled state to the OutlineButton
Finished of the last bits for the BlockedContacts screen
Applied theming to the LinkPreview
Applied theming to the Call info message (and it's prompt)
Fixed a minor issue where showing the ContextMenu (via long press) could look odd due to the input field being dismissed
Swapped the LinkPreviewModal to use the standard ConfirmationModal
Removed a redundant closure from the ConfirmationModal
2022-08-31 17:44:44 +10:00
ryanzhao d5948c0142 fix a crash when remove reaction and there are exactly 6 reactors 2022-08-31 17:42:37 +10:00
ryanzhao 98cf10cfea fix crash on clicking on more reactors cell 2022-08-31 16:57:38 +10:00
ryanzhao c2ffdc091c Merge branch 'dev' into emoji-react-tweak-1 2022-08-31 16:33:54 +10:00
Morgan Pretty 1afdfa8bcb Fixed a bug where the typing indicator wasn't working on the home screen 2022-08-31 12:01:21 +10:00
ryanzhao 6a8b14b8d2 tweak: refactor reaction deletion 2022-08-30 15:26:23 +10:00
ryanzhao 82e55a8d5b tweak: local reaction entry logic change 2022-08-30 14:58:31 +10:00
ryanzhao ddbbf63d14 Merge branch 'dev' into emoji-react-tweak-1 2022-08-30 11:59:33 +10:00
ryanzhao faecb82062 tweak: update the logic of adding local reaction entry after message sent or open group api api call success 2022-08-30 11:59:11 +10:00
Morgan Pretty fc860e3957 Added fixes and defensive coding for a number of crashes
Fixed a crash which could occur due to multithreaded dependency access
Fixed a crash which could occur if the 'keyWindow' wasn't set on the LandingVC in time since we were force-unwrapping
Fixed a crash which could occur due to multithreaded swarm cache access
Fixed the broken unit tests
2022-08-30 09:45:40 +10:00
Ryan Zhao 31dcb3c985 feat: cache remove all for open group emoji reacts 2022-08-29 15:58:49 +10:00
Ryan Zhao 4a3fe4cdeb tweak: view height of reaction user list 2022-08-29 14:52:36 +10:00
Ryan Zhao c4aeecdf4b tweak: fully rounded corners for all message bubbles 2022-08-29 14:52:11 +10:00
Ryan Zhao e9d598e62a feat: add text at the bottom saying of the reactors list indicating the number of other reactors 2022-08-29 14:04:48 +10:00
Ryan Zhao 7efc0a61c7 update translation 2022-08-29 13:08:31 +10:00
Ryan Zhao 5a29df56fc update translation 2022-08-29 10:41:43 +10:00
Ryan Zhao 6b20fbf610 add translation 2022-08-29 09:53:09 +10:00
Morgan Pretty 7f5b7ef703 Updated the conversation creation screens 2022-08-26 16:23:39 +10:00
ryanzhao 681fe92ee5 Merge branch 'dev' into menu-redesign 2022-08-26 15:32:06 +10:00
ryanzhao 395e585ea0 Merge branch 'dev' into emoji-reacts-tweaks 2022-08-26 14:24:16 +10:00
Morgan Pretty c82ee0c44b Finished off the updated settings sections and fixed a couple of bugs
Added the Blocked contacts screen
Added a setting to control whether concurrent audio messages should auto-play
Finished updating the settings screens
Fixed an issue where items that should be removed from the PagedDatabaseObserver due to filter logic weren't getting removed in some cases
2022-08-26 14:09:41 +10:00
Morgan Pretty 8f1a03db88 Moved the code for a previous fix to the correct location and fixed a build issue 2022-08-26 13:33:49 +10:00
Morgan Pretty a1e88329db Merge branch 'dev' into feature/theming
# Conflicts:
#	Podfile.lock
#	Session.xcodeproj/project.pbxproj
#	Session/Conversations/Message Cells/VisibleMessageCell.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
#	Session/Notifications/AppNotifications.swift
#	SessionMessagingKit/Shared Models/MessageViewModel.swift
#	SessionMessagingKit/Shared Models/SessionThreadViewModel.swift
#	SignalUtilitiesKit/Profile Pictures/ProfilePictureView.swift
2022-08-26 13:24:42 +10:00
ryanzhao ae639b2474 minor fix 2022-08-26 10:53:48 +10:00
ryanzhao 287fabb390 Merge branch 'dev' into emoji-reacts-tweaks 2022-08-26 10:24:29 +10:00
Ryan Zhao 543f729247 feat: add local cache and deal with merging for reaction changes 2022-08-25 17:24:43 +10:00
Morgan Pretty 64189b0bf0
Merge pull request #673 from mpretty-cyro/fix/various-bugs
Fixed a few bugs
2022-08-25 15:02:50 +10:00
Morgan Pretty f0c27db52f Merge branch 'dev' into fix/use-default-notification-audio 2022-08-25 12:57:54 +10:00
Morgan Pretty c73bb43c56 Fixed a few bugs
Fixed a bug where open group message deletion wasn't thread-specific
Fixed a bug where the user couldn't delete pending/failed messages being sent to an open group
Fixed a bug where deleting content from "related" tables wouldn't correctly trigger an update within the PagedDatabaseObserver
Fixed a bug where a user that was an admin/mod of one open group would incorrectly appear to be an admin/mod of all open groups
2022-08-25 12:55:41 +10:00
Morgan Pretty 823006a892 Updated the colours to source from direct theme values (instead of individual)
Removed an unused notification
Refactored the PrivacySettingsViewController
Refactored the ScreenLock code to Swift
Fixed an issue where the match dark/light setting wasn't getting applied on launch
Update the modal styling for the various settings modals
2022-08-24 17:33:10 +10:00
ryanzhao 53e67adb1c wip: new conversation menu screen 2022-08-24 15:37:43 +10:00
ryanzhao 3d24c1526e clean 2022-08-23 15:41:51 +10:00
ryanzhao ae5d0b0024 fix: status bar issue 2022-08-23 14:38:35 +10:00
ryanzhao 12a45845a3 Merge branch 'dev' into menu-redesign 2022-08-23 13:58:00 +10:00
ryanzhao 014e8620c4 bump up version & build number 2022-08-23 12:17:23 +10:00
Morgan Pretty 6a32fbaf83 Fixed a bug where the "default" notification sound wouldn't be used in the foreground 2022-08-23 09:02:56 +10:00
Ryan Zhao 0ee3302ea9 fix next button not showing the first time tapping input field 2022-08-22 17:01:36 +10:00
Ryan Zhao 1eab9d8bbd tweak: little modification on the message request acceptance description 2022-08-22 16:47:29 +10:00
Ryan Zhao 090fb940de Merge branch 'emoji-reacts' into ui-media-message 2022-08-22 16:33:36 +10:00
Ryan Zhao 838623171d tweak: always left align emoji reacts 2022-08-22 16:33:25 +10:00
Ryan Zhao 734f29e212 ui: scanning QR code view 2022-08-22 16:27:34 +10:00
Ryan Zhao bf75055096 ui: new message view - enter session id vc 2022-08-22 15:49:57 +10:00
Ryan Zhao 5dd5168b92 tweak: redo home vc plus button 2022-08-22 15:48:52 +10:00
Ryan Zhao a3c739e9cc Merge branch 'emoji-reacts' into ui-media-message 2022-08-22 12:00:25 +10:00
Ryan Zhao c7c92f747c Merge branch 'various-bugs-and-optimisations' into emoji-reacts 2022-08-22 11:30:06 +10:00
Morgan Pretty 7097853d58 A few bugs fixes and some optimisations
Fixed a bug where notifications could incorrectly appear for messages in the current thread
Fixed a bug where swiping left/right on images in the MediaDetailViewController could load images from other threads
Fixed a bug where the unread count wouldn't appear correctly when opening a conversation
Fixed a bug where the unread count on the conversation cell could get truncated
Fixed a bug where notifications weren't working correctly when the app is in the foreground
Fixed a bug where we weren't clearing the 'received X new messages' count when in the foreground
Fixed a bug where outgoing messages could get marked as read in a very specific case
Updated the "group notification" logic to only apply to Open Groups (and always doing it rather than just in the background)
Added a placeholder person icon when you have a closed group with a single member
Added a couple of indexes to improve the HomeVC database query performance (reduce launch time by ~15% in some cases)
Added a background task to give message sending the chance to complete when sending the app to the background
Removed an unneeded query from the HomeViewModel init (reduce launch time by ~10% in some cases)
Optimised one of the queries used to load the data needed for the conversation screen
2022-08-19 16:58:47 +10:00
ryanzhao 53d5c7fb3f tweak: update block action background colour 2022-08-19 15:56:02 +10:00
ryanzhao 3944fe52c1 feat: show unsupported emoji 2022-08-19 10:10:07 +10:00
Ryan Zhao 43b6f0b649 WIP: unsupported emojis 2022-08-18 17:11:08 +10:00
Ryan Zhao 651373234a feat: add capability check for open group emoji reacts 2022-08-18 16:13:20 +10:00
Ryan Zhao 7ca48e9c7b tweak: fix clear all action for open group moderators 2022-08-18 14:37:33 +10:00
Ryan Zhao 36801e4876 feat: disable emoji reacts for message requests 2022-08-18 11:16:01 +10:00
Ryan Zhao 094c64bb6a tweak: fix context menu screen layout 2022-08-18 10:44:07 +10:00
ryanzhao 95cd516bce tweak: if current user reacts then their username should appear as ‘You’ 2022-08-17 17:01:57 +10:00
ryanzhao 0a9856d49a tweak: fix reaction notifications 2022-08-17 16:41:01 +10:00
ryanzhao 78d8e939f1 tweak: fix search emoji 2022-08-17 15:08:49 +10:00
ryanzhao f93820362c add silence audio file 2022-08-17 14:19:14 +10:00
Morgan Pretty 20d63d106c Updated the app settings screens
Updated the MessageRequestViewModel to have the same page size as the HomeViewModel
Fixed a couple minor UI discrepancies
Refactored the old app settings child screens to be configuration based and all in Swift
2022-08-17 10:51:14 +10:00
ryanzhao adc6d948a2 Merge branch 'dev' into message-request-tweak 2022-08-17 10:23:53 +10:00
ryanzhao 8d43eac608 Merge branch 'dev' into quote-standardise 2022-08-17 10:23:32 +10:00
ryanzhao 1c94dd65d3 Merge branch 'dev' into ui-media-message 2022-08-17 10:23:16 +10:00
ryanzhao f913b7a168 Merge branch 'dev' into add-documents-section 2022-08-17 10:22:43 +10:00
ryanzhao 93e2e295bc tweak: update default emojis 2022-08-17 10:15:24 +10:00
ryanzhao 131cb9170b Merge branch 'dev' into emoji-reacts 2022-08-17 10:10:27 +10:00
Morgan Pretty b53ad0c5ed
Merge pull request #657 from mpretty-cyro/fix/use-yyimageview-only-when-needed
Only use YYImage for Gif/WebP images
2022-08-16 14:01:07 +10:00
Morgan Pretty 3ab8bdec77 Fixed an issue where hidden mods/admins wouldn't be properly recognised
Added an isHidden flag to the GroupMember
Reset the OpenGroup 'infoUpdates' value to force a re-fetch of the data and fix users affected by this bug
Fixed the broken unit tests
2022-08-16 13:56:40 +10:00
Morgan Pretty 9f4d1a678a Fixed a bug where deleted incoming messages could incorrectly be counted as unread 2022-08-16 11:44:11 +10:00
Morgan Pretty 6d6d45b283 Updated the ProfilePictureView to only use YYImage for Gif and WebP images
Added support for animated OpenGroup images
2022-08-15 10:35:52 +10:00
Morgan Pretty ea32e407a9 Applied theming to a number of screens, some minor cleanup and bug fixes
Updated the HomeVC, SettingsVC and GlobalSearch UI to use theming
Removed the "fade view" gradients from the various screens
Added a simple log to the PagedDatabaseObserver to make debugging easier
Updated the FullConversationCell to also show the "read" state for messages
Updated the read receipt icons to use SFSymbols directly
Updated the PlaceholderIcon to use the PrimaryColour's as it's colour options
2022-08-12 17:28:00 +10:00
ryanzhao 3870c0c505 minor fix 2022-08-12 16:30:32 +10:00
ryanzhao 9657998d7b WIP: add block button to message request view 2022-08-12 16:16:37 +10:00
ryanzhao 92e6f1a356 update localised strings 2022-08-12 16:04:06 +10:00
ryanzhao 78d68bcc38 tweak: Delete -> Decline 2022-08-12 15:48:09 +10:00
ryanzhao 0ed4c7d66e tweak: “Clear all” button just delete all message request conversations instead of blocking them 2022-08-12 15:33:16 +10:00
ryanzhao db701bb0e2 feat: add a separate “Block” action when swiping a message request 2022-08-12 15:31:43 +10:00
Morgan Pretty d56cee8234 Progressing on theming functionality
Created the ThemeManager and the system to control the dynamic theming
Started updating the main settings screens
Added the AppearanceViewController and connected it to the ThemeManager
Started adding theme values
Started applying theme values throughout
2022-08-12 13:35:17 +10:00
Morgan Pretty e007870c34 Fixed a bug where disappearing messages weren't working for local outgoing messages 2022-08-12 08:32:31 +10:00
Ryan Zhao 229e8376e5 WIP: observe quote update 2022-08-11 17:15:56 +10:00
Ryan Zhao 8ba7f927d8 feat: deal with quoted text 2022-08-11 16:44:22 +10:00
Morgan Pretty 2acc32a44b Fixed the broken MediaDetail <-> MediaTile custom transition 2022-08-11 15:01:23 +10:00
Ryan Zhao 01be564649 tweak: add localised strings 2022-08-11 09:31:52 +10:00
ryanzhao 8bedaa39fd Merge branch 'dev' into quote-standardise 2022-08-10 14:25:10 +10:00
ryanzhao 76833c0b9f tweak: fix album view background in visible message cells 2022-08-10 14:19:18 +10:00
ryanzhao 827ecee7b0 tweak: fix the layout of snapshot in context menu view 2022-08-10 14:08:17 +10:00
ryanzhao 85b3015d71 clean 2022-08-10 13:51:48 +10:00
ryanzhao d02b0c90bd Merge branch 'dev' into ui-media-message 2022-08-10 13:43:57 +10:00
ryanzhao fa1a67d957 feat: show all media view with media & document sections from tapping All Media nav button 2022-08-10 13:41:24 +10:00
ryanzhao a162f324b1 feat: add select button and delete function in media title screen 2022-08-10 13:32:53 +10:00
ryanzhao 99989f9944 Merge branch 'dev' into add-documents-section 2022-08-09 16:00:44 +10:00
ryanzhao ba578fcb3c Merge branch 'dev' into emoji-reacts 2022-08-09 16:00:30 +10:00
ryanzhao 1fa505d1a2 feat: show media detail 2022-08-09 16:00:05 +10:00
Morgan Pretty 201c59fd2b Updated the logic for the background fetch timeout
Updated the logic for the background fetch timeout to happen in the AppDelegate and be based on a system property to avoid a few edge-cases
Removed the ID Blinding error handling 'e' suffix (as it's not actually part of the error)
2022-08-09 15:18:57 +10:00
ryanzhao 402bee2d38 feat: add action for document section 2022-08-09 12:39:26 +10:00
Ryan Zhao ab3bbab656 add one more localised string 2022-08-08 17:11:56 +10:00
Ryan Zhao 8c74ecbe63 add localised strings 2022-08-08 17:07:58 +10:00
Ryan Zhao bc16e3da4b fix: shift the threadId filter line above the variant and sourceFilename lines 2022-08-08 17:01:36 +10:00
Ryan Zhao aaf91c3327 Merge branch 'database-refactor' into emoji-reacts 2022-08-08 15:00:00 +10:00
Ryan Zhao c36520b420 Merge branch 'database-refactor' into quote-standardise 2022-08-08 14:58:36 +10:00
Ryan Zhao f60f68e150 Merge branch 'database-refactor' into ui-media-message 2022-08-08 14:58:17 +10:00
Ryan Zhao dc0220accc Merge branch 'database-refactor' into add-documents-section 2022-08-08 14:58:03 +10:00
Ryan Zhao d98221feb4 fix: minor ui issue on the reaction user list 2022-08-08 14:57:46 +10:00
Morgan Pretty 2025fd2638 Fixed a crash and the SOGS deletion logic to continue to support the deprecated approach for the time being
Fixed an issue where the app could crash when entering the background during migration
Added the old 'messageServerIdsToRemove' code back for the time being to support the deprecated deletion behaviour
2022-08-08 13:56:11 +10:00
Ryan Zhao 7383ddad04 update sortId logic after open group reaction index 2022-08-08 13:07:29 +10:00
Ryan Zhao 91afad99d5 Merge branch 'database-refactor' into emoji-reacts 2022-08-08 10:16:07 +10:00
Ryan Zhao 6a1186b556 Merge branch 'database-refactor' into ui-media-message 2022-08-08 09:22:36 +10:00
Ryan Zhao d4237828a8 Merge branch 'database-refactor' into quote-standardise 2022-08-08 09:22:15 +10:00
Ryan Zhao 86a5fb7f1f Merge branch 'database-refactor' into add-documents-section 2022-08-08 09:21:51 +10:00
Morgan Pretty 1224e539ea Reduced unneeded DB write operations and fixed a few minor UI bugs
Updated the database to better support the application getting suspended (0xdead10cc crash)
Updated the SOGS message handling to delete messages based on a new 'deleted' flag instead of 'data' being null
Updated the code to prevent the typing indicator from needing a DB write block as frequently
Updated the code to stop any pending jobs when entering the background (in an attempt to prevent the database suspension from causing issues)
Removed the duplicate 'Capabilities.Capability' type (updated 'Capability.Variant' to work in the same way)
Fixed a bug where a number of icons (inc. the "download document" icon) were the wrong colour in dark mode
Fixed a bug where the '@You' highlight could incorrectly have it's width reduced in some cases (had protection to prevent it being larger than the line, but that is a valid case)
Fixed a bug where the JobRunner was starting the background (which could lead to trying to access the database once it had been suspended)
Updated to the latest version of GRDB
Added some logic to the BackgroundPoller process to try and stop processing if the timeout is triggered (will catch some cases but others will end up logging a bunch of "Database is suspended" errors)
Added in some protection to prevent future deferral loops in the JobRunner
2022-08-05 17:10:01 +10:00
ryanzhao 07a1d10212 fix an issue where reaction updates triggers scrolling 2022-08-05 16:16:39 +10:00
ryanzhao 073516ae78 feat: add sortId for reaction sorting 2022-08-05 14:23:28 +10:00
ryanzhao ebe422e55c Merge branch 'database-refactor' into add-documents-section 2022-08-05 09:55:44 +10:00
ryanzhao 8f98cb5ca8 Merge branch 'database-refactor' into ui-media-message 2022-08-05 09:55:32 +10:00
ryanzhao 34f6cf4646 Merge branch 'database-refactor' into quote-standardise 2022-08-05 09:55:18 +10:00
ryanzhao 99e4614bf8 Merge branch 'database-refactor' into emoji-reacts 2022-08-05 09:54:13 +10:00
Ryan Zhao a2c9bee269 WIP: add sortId 2022-08-04 17:10:24 +10:00
Morgan Pretty f8b2f73f7b Fixed a few issues found during QA
Fixed an issue where quotes containing images wouldn't send
Fixed an issue where a MessageSend job could get stuck in an infinite retry loop if it had an attachment in an invalid state
Fixed an issue where quotes containing non-media files wouldn't contain the correct data
Fixed an issue where the quote thumbnail was getting the wrong content mode set
Fixed an issue where the local disappearing messages config wasn't getting generated correctly
Fixed an issue where the format parameters for the disappearing message info message were the wrong way around in one case
Updated the AttachmentUploadJob to try to support images which haven't completed downloading (untested as it's not supported via the UI)
2022-08-04 13:25:46 +10:00
ryanzhao cd08c792d3 WIP: include reactions into open group message detail info 2022-08-03 16:08:23 +10:00
ryanzhao 1c9d23eeb5 Merge branch 'database-refactor' into emoji-reacts 2022-08-03 09:59:29 +10:00
ryanzhao 9f12dee7b7 Merge branch 'database-refactor' into quote-standardise 2022-08-03 09:59:08 +10:00
ryanzhao 7b63e52314 Merge branch 'database-refactor' into ui-media-message 2022-08-03 09:58:52 +10:00
ryanzhao 61bdbe6e9b Merge branch 'database-refactor' into add-documents-section 2022-08-03 09:58:33 +10:00
Morgan Pretty 5f1039b39e Updated the PushNotificationAPI to use V4 onion requests instead of V2
Fixed a crash which could occur when handling 'loadMedia' edge cases in the MediaView (was running on non-main thread)
2022-08-03 09:10:20 +10:00
ryanzhao f99ae07309 Merge branch 'database-refactor' into emoji-reacts 2022-08-02 09:35:55 +10:00
ryanzhao 6e144ec9b7 Merge branch 'database-refactor' into ui-media-message 2022-08-02 09:30:47 +10:00
ryanzhao 2ef31b83b3 Merge branch 'database-refactor' into quote-standardise 2022-08-02 09:30:25 +10:00
ryanzhao 075dce02f7 Merge branch 'database-refactor' into add-documents-section 2022-08-02 09:30:04 +10:00
Morgan Pretty 8f3e7fc36a Removed the debug code and added a migration to remove the old YDB
Fixed a typo
2022-08-01 16:53:05 +10:00
Ryan Zhao a66948812e feat: open group emoji reacts endpoints work 2022-08-01 15:45:59 +10:00
Morgan Pretty 4d5ded7557 Fixed a few bugs with media attachment handling, added webp support
Updated the OpenGroupManager to create a BlindedIdLookup for messages within the `inbox` (validating that the sessionId does actually match the blindedId)
Added support for static and animated WebP images
Added basic support for HEIC and HEIF images
Fixed an issue where the file size limit was set to 10,000,000 bytes instead of 10,485,760 bytes (which is actually 10Mb)
Fixed an issue where attachments uploaded by the current user on other devices would always show a loading indicator
Fixed an issue where media attachments that don't contain width/height information in their protos weren't updating the values once the download was completed
Fixed an issue where the media view could download an invalid file and endlessly appear to be downloading
2022-07-29 15:26:24 +10:00
ryanzhao 233a77608e Merge branch 'database-refactor' into quote-standardise 2022-07-29 09:18:26 +10:00
ryanzhao 585e5b3547 Merge branch 'database-refactor' into ui-media-message 2022-07-29 09:16:15 +10:00
ryanzhao d70d45c32a Merge branch 'database-refactor' into add-documents-section 2022-07-29 09:15:54 +10:00
ryanzhao 8920cbdc28 Merge branch 'database-refactor' into emoji-reacts 2022-07-29 09:15:36 +10:00
Ryan Zhao f7a6d0dbb0 feat: add & delete emoji reacts in open groups 2022-07-28 16:32:51 +10:00
Morgan Pretty ae4999c3a7 Fixed a couple of crashes and a couple of other bugs
Fixed a crash due to database re-entrancy
Fixed an issue where interacting with a push notification wouldn't open the conversation in some cases
Added code to prevent a user from being able to start a DM with a blinded id
Updated some open group polling logs to be clearer
2022-07-28 15:36:56 +10:00
Ryan Zhao cc2bf11950 feat: remove all reaction per emoji for open group moderation. 2022-07-28 13:06:29 +10:00
ryanzhao 82f058eae8 fix snapshot 2022-07-27 16:39:47 +10:00
ryanzhao 4d66d3fea5 observe attachment change as well 2022-07-27 10:48:34 +10:00
ryanzhao 170ac8a498 add observer to refresh UI when quoted message is deleted 2022-07-27 10:47:50 +10:00
ryanzhao 4e7d3028f9 Merge branch 'database-refactor' into quote-standardise 2022-07-26 16:24:58 +10:00
ryanzhao d4a6c83941 Merge branch 'database-refactor' into ui-media-message 2022-07-26 16:24:40 +10:00
ryanzhao ef36ccfd02 Merge branch 'database-refactor' into add-documents-section 2022-07-26 16:24:25 +10:00
ryanzhao 83b40915a1 remove quote content when original message is removed 2022-07-26 16:23:54 +10:00
Morgan Pretty aed1b73185 Fixed a few additional issues uncovered
Added a explicit "timeout" error to make debugging a little easier
Added code to prevent the AttachmentUploadJob from continuing to try to upload if it's associated interaction has been deleted
Updated the getDefaultRoomsIfNeeded to make an unauthenticated sequence all to get both capabilities and rooms (so we will know if the server is blinded and retrieve the room images using blinded auth)
Fixed a bug where the notification badge wouldn't get cleared when removing data from a device
Fixed a bug where adding an open group could start with an invalid 'infoUpdates' value resulting in invalid data getting retrieved
Fixed a bug where under certain circumstances the PagedDatabaseObserver was filtering out updates (noticeable when restoring a device, would happen if the currentCount of content was smaller than the pageSize)
2022-07-26 11:36:32 +10:00
ryanzhao 69289cbfd6 Merge branch 'database-refactor' into add-documents-section 2022-07-26 09:15:58 +10:00
ryanzhao 84e7a07ee0 Merge branch 'database-refactor' into ui-media-message 2022-07-26 09:15:39 +10:00
ryanzhao 6dfae5358a Merge branch 'database-refactor' into quote-standardise 2022-07-26 09:15:23 +10:00
Morgan Pretty 9859cf95a4 Attempted to fix the notification & call reporting issues
Fixed an issue where fileIds weren't correctly getting sent along with open group messages
Fixed an issue where the screens could miss updates if the device was locked with the app in the foreground and then later unlocked after receiving notifications
Added an optimisation to prevent attempting to send a message after it has been deleted
Added logic to report fake calls if the code goes down an invalid code path when handling a call (to prevent Apple blocking the app)
Delayed the core which clears notifications to increase the time the app has to handle interactions (just in case it was a race condition)
2022-07-25 17:03:09 +10:00
Morgan Pretty c25f378c54 Merge branch 'feature/database-refactor' into emoji-reacts
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Conversations/Context Menu/ContextMenuVC+Action.swift
#	Session/Conversations/Context Menu/ContextMenuVC+ActionView.swift
#	Session/Conversations/Context Menu/ContextMenuVC.swift
#	Session/Conversations/ConversationVC+Interaction.swift
#	Session/Conversations/ConversationVC.swift
#	Session/Conversations/ConversationViewItem.h
#	Session/Conversations/ConversationViewItem.m
#	Session/Conversations/Message Cells/Content Views/LinkPreviewView.swift
#	Session/Conversations/Message Cells/MessageCell.swift
#	Session/Conversations/Message Cells/VisibleMessageCell.swift
#	Session/Conversations/Views & Modals/BodyTextView.swift
#	Session/Meta/Translations/en.lproj/Localizable.strings
#	Session/Shared/UserCell.swift
#	SessionMessagingKit/Jobs/MessageSendJob.swift
#	SessionMessagingKit/Messages/Signal/TSMessage.h
#	SessionMessagingKit/Messages/Signal/TSMessage.m
#	SessionMessagingKit/Messages/Visible Messages/VisibleMessage.swift
#	SessionMessagingKit/Open Groups/OpenGroupAPIV2.swift
#	SessionMessagingKit/Sending & Receiving/MessageReceiver+Handling.swift
#	SessionMessagingKit/Sending & Receiving/Notifications/NotificationsProtocol.h
#	SessionMessagingKit/Sending & Receiving/Pollers/OpenGroupPollerV2.swift
#	SessionMessagingKit/Utilities/General.swift
#	SessionNotificationServiceExtension/NSENotificationPresenter.swift
#	SignalUtilitiesKit/Utilities/DisplayableText.swift
#	SignalUtilitiesKit/Utilities/NoopNotificationsManager.swift
#	SignalUtilitiesKit/Utilities/Notification+Loki.swift
2022-07-25 15:39:56 +10:00
ryanzhao 185f6ab269 remove text from quote protobuf 2022-07-22 15:20:18 +10:00
ryanzhao 290ccdc639 fix long press snapshot of messages 2022-07-20 14:08:46 +10:00
ryanzhao e1c5d9411d fix highlighting 2022-07-20 11:47:54 +10:00
ryanzhao 82429a8566 fix bubble background for deleted messages and media message placeholder 2022-07-20 10:46:41 +10:00
ryanzhao 44c962eea7 fix ui issue #644 for open group messages 2022-07-20 10:41:33 +10:00
ryanzhao 88bc560c1b Merge branch 'database-refactor' into ui-media-message 2022-07-19 16:16:58 +10:00
ryanzhao 456c9ac874 Merge branch 'database-refactor' into add-documents-section 2022-07-19 16:16:42 +10:00
ryanzhao cd9a8330db fix cell ui for documents 2022-07-19 15:53:10 +10:00
ryanzhao 984643b9c7 Merge branch 'ui-media-message' of https://github.com/RyanRory/loki-messenger-ios into ui-media-message 2022-07-19 14:32:55 +10:00
ryanzhao 9ec703b698 adjust album view 2022-07-19 14:32:44 +10:00
Morgan Pretty 44e7a2dfa4 Added defensive coding to prevent some crashes
Added some defensive coding to prevent path selection from being able to crash due to being empty
Fixed a crash where the MediaDetailViewController could access UI on a non-main thread
Updated the BackgroundPoller to no longer retry the users or closed group swarms and to "cancel" and return immediately if we hit 25 seconds of run time (OS will kill the process if we hit 30 seconds)
2022-07-18 17:40:32 +10:00
Ryan Zhao 8f2bf58728 Merge branch 'database-refactor' into ui-media-message 2022-07-18 16:44:16 +10:00
Ryan Zhao b7d17da9cc Merge branch 'database-refactor' into add-documents-section 2022-07-18 16:43:15 +10:00
Morgan Pretty 0d80678a77 Updated the message request approval process to run asynchronously
Fixed a bug where the MessageRequestsViewController wouldn't page properly in certain cases
2022-07-18 12:32:46 +10:00
Morgan Pretty d730ce3e62 Reverted the logic to only download attachments when opening a conversation (new flag in future)
Fixed a minor bug where the UpdateProfilePictureJob could get stuck in a "defer loop"
2022-07-18 10:08:26 +10:00
Morgan Pretty 9fff4dce20 Fixed a number of bugs found during QA
Fixed a bug where the "Block user" toggle wasn't correctly reflecting the current users state
Fixed a bug where the "Blocked banner" wasn't showing the "unblock this user" alert.
Fixed a bug where the "Blocked banner" wouldn't re-appear if you re-block a user after unblocking them.
Fixed a bug where the conversation screen unblocking logic wasn't actually unblocking the user.
Fixed a bug where some settings options were disabled in open groups because the code thought the user had left the group.
Fixed a bug where the settings button wouldn't appear after accepting a message request.
2022-07-18 09:54:23 +10:00
Morgan Pretty 3c07a2d044 Added linting for the localized strings, updated the quote & mention behaviour for the current user
Added a script and build step to error if we have localised a string in code bug don't have an entry in the localisable files
Added the logic and UI to replace the current users public key (or blinded key) with 'You' in mentions and quotes
Cleaned up some duplicate & missing localised strings
Fixed a bug where new closed groups weren't getting setup locally correctly
Updated the id truncating behaviour to always truncate from the middle
2022-07-15 18:15:28 +10:00
ryanzhao e2d9ba6882 fix pan gesture of message cell 2022-07-15 11:26:15 +10:00
ryanzhao a123b36a47 minor fixes for voice messages and link preview 2022-07-15 10:50:27 +10:00
ryanzhao 6a6ea137f6 update media message UI 2022-07-14 16:40:06 +10:00
ryanzhao b0d78754c4 Merge branch 'database-refactor' into add-documents-section 2022-07-13 13:23:36 +10:00
ryanzhao 13ded2d4b2 minor fix 2022-07-13 13:23:17 +10:00
Morgan Pretty 5b6be3912d Fixed an edge-case crash, a couple of minor bugs and made future-proofing tweaks
Fixed a bit of the OnionRequest error handling to better send through server error messages for debugging
Fixed a bug where the initial offset could be negative if the number of messages was less than the page size resulting in a crash
Fixed a crash due to a code path which was thought to be impossible exiting but is actually possible (so just erroring)
Added the 'expire' SnodeAPI endpoint
Removed the 'openGroupServerTimestamp' property (was unused and just added confusion)
Updated the logic to always handle the 'fileId' for uploads/downloads as a string instead of casting it to an Int64
Updated the OpenGroup room parsing to support either Int or String values for image ids
2022-07-12 17:43:52 +10:00
ryanzhao 13370dbb9e add comments 2022-07-12 15:31:54 +10:00
ryanzhao 4a914480a7 Merge branch 'database-refactor' into add-documents-section 2022-07-12 15:29:33 +10:00
ryanzhao d9f05f5b9c fix: filter voice messages with file name to prevent some cases that the attachment is not marked as voice message 2022-07-12 15:29:13 +10:00
ryanzhao 533edd903b feat: implement handle update document view 2022-07-11 15:03:57 +10:00
Morgan Pretty b4ab521713 Fixed a bug with the message request UI and with recurring job retrying
Fixed a bug where jobs that recur on launch or active could end up endlessly retrying if they failed once
Fixed a bug where the message request UI would appear for outgoing message requests
2022-07-11 14:26:23 +10:00
ryanzhao 3f9e26729c fix sql statement 2022-07-11 14:26:14 +10:00
ryanzhao 8d385de389 clean 2022-07-11 11:31:42 +10:00
ryanzhao 1e1c5a5fde Merge branch 'database-refactor' into add-documents-section 2022-07-11 11:02:19 +10:00
ryanzhao 3241d66905 clean 2022-07-11 10:29:19 +10:00
Morgan Pretty 4afddd6fbb Fixed a number of reported bugs, some cleanup, added animated profile support
Added support for animated profile images (no ability to crop/resize)
Updated the message trimming to only remove messages if the open group has 2000 messages or more
Updated the message trimming setting to default to be on
Updated the ContextMenu to fade out the snapshot as well (looked buggy if the device had even minor lag)
Updated the ProfileManager to delete and re-download invalid avatar images (and updated the conversation screen to reload when avatars complete downloading)
Updated the message request notification logic so it will show notifications when receiving a new message request as long as the user has read all the old ones (previously the user had to accept/reject all the old ones)
Fixed a bug where the "trim open group messages" toggle was accessing UI off the main thread
Fixed a bug where the "Chats" settings screen had a close button instead of a back button
Fixed a bug where the 'viewsToMove' for the reply UI was inconsistent in some places
Fixed an issue where the ProfileManager was doing all of it's validation (and writing to disk) within the database write closure which would block database writes unnecessarily
Fixed a bug where a message request wouldn't be identified as such just because it wasn't visible in the conversations list
Fixed a bug where opening a message request notification would result in the message request being in the wrong state (also wouldn't insert the 'MessageRequestsViewController' into the hierarchy)
Fixed a bug where the avatar image wouldn't appear beside incoming closed group message in some situations cases
Removed an error log that was essentially just spam
Remove the logic to delete old profile images when calling save on a Profile (wouldn't get called if the row was modified directly and duplicates GarbageCollection logic)
Remove the logic to send a notification when calling save on a Profile (wouldn't get called if the row was modified directly)
Tweaked the message trimming description to be more accurate
Cleaned up some duplicate logic used to determine if a notification should be shown
Cleaned up some onion request logic (was passing the version info in some cases when not needed)
Moved the push notification notify API call into the PushNotificationAPI class for consistency
2022-07-08 17:53:48 +10:00
ryanzhao 5b285e6bef fix: filter audio message attachments out of documents 2022-07-08 14:41:20 +10:00
ryanzhao 87a9bf9bce feat: add view for empty and loading state of document view 2022-07-08 14:40:48 +10:00
ryanzhao 0d25fb1c48 wip: add headers for different status 2022-07-07 16:57:21 +10:00
ryanzhao ccc46dfbf8 Add “documents” section in the all media screen for a conversation 2022-07-07 16:40:13 +10:00
Morgan Pretty 6b9a19c761 Fixed a few more bugs and made a couple of optimisations to the GarbageCollectionJob
Added an index on Quote.authorId and added a garbage collection job to remove orphaned Profile entries
Added a few more indexes to improve the GarbageCollectionJob performance
Added some debug code to force a re-migration on next launch if the DB is invalid (only affects testers so code should be removed)
Fixed an issue where the GetSnodePool job wasn't properly blocking
Fixed an issue where a user could send the same message multiple times if they clicked the send button quickly enough
Fixed an issue where profiles might not have been getting created correctly for ClosedGroup members which have no threads/interactions
2022-07-05 16:47:12 +10:00
Morgan Pretty 34fea96db3 Fixed a bunch more bugs around push notifications and avatars
Added code to prevent the garbage collection job from auto-running more often than once every 23 hours
Fixed a bug where if the first avatar you try to add is your own, it could fail due to the folder not getting created
Fixed a bug where updating your profile would store and send an invalid profile picture url against your profile
Fixed an issue where the closed group icon wouldn't appear as the double icon when it couldn't retrieve a second profile
Fixed a bug where the device might not correctly register for push notifications in some cases
Fixed a bug where interacting with a notification when the app is in the background (but not closed) wasn't doing anything
Fixed a bug where the SyncPushTokensJob wouldn't re-run correctly in some cases if the user was already registered
Updated the profile avatar downloading logic to only download avatars if they have been updated
Updated the migration and OpenGroupManager to force Session-run open groups to always use the OpenGroupAPI.defaultServer value
2022-07-04 17:36:48 +10:00
ryanzhao 1d9e4c88c2 fix snapshot not completed issue 2022-07-01 16:42:55 +10:00
Morgan Pretty f9f0662558 Removed an import for file deleted as part of the iOS 13 min version changes
Fixed a bug where opening a conversation by tapping a notification wouldn't mark the conversation messages as read
2022-07-01 13:59:50 +10:00
Morgan Pretty cdb211b72a Applied the "increase min version to iOS 13" changes 2022-07-01 13:33:00 +10:00
Morgan Pretty 8cf2a57fcc Renamed GRDBStorage to Storage (no use having the prefix anymore since the old DB is deprecated) 2022-07-01 13:08:45 +10:00
Morgan Pretty eb0118ac10 Fixed a few more bugs and tweaked attachment download logic
Updated the code to only auto-start attachment downloads when a user opens a conversation (and only for the current page of messages)
Updated the GarbageCollectionJob to default to handling all cases (instead of requiring the cases to be defined) - this means we can add future cases without having to recreate the default job
Added logic to remove approved blinded contact records as part of the GarbageCollectionJob
Added code to better handle "invalid" attachments when migrating
Added a mechanism to retrieve the details for currently running jobs (ie. allows us to check for duplicate concurrent jobs)
Resolved the remaining TODOs in the GRDB migration code
Cleaned up DB update logic to update only the targeted columns
Fixed a bug due to a typo in a localised string
Fixed a bug where link previews without images or with custom copy weren't being processed as link previews
Fixed a bug where Open Groups could display with an empty name value
2022-07-01 12:52:41 +10:00
Morgan Pretty f2bd72b3ae Fixed a couple more bugs
Fixed an issue with updating the users profile image
Fixed an annoying bug where the conversation screen would "bounce" when initial loading
2022-06-30 17:48:43 +10:00
Ryan Zhao e8518188ac WIP: fix snapshot 2022-06-30 17:20:11 +10:00
Morgan Pretty c7e8071dd1 Fixed a large number of bugs and added a setting to control open group message deletion
Added a setting to control whether open group messages older than 6 months should be pruned
Added some defensive coding to prevent an edge-case which could cause a crash (wasn't filtering out a potential invalid row from the home screen data)
Fixed a bug where preOffer call messages weren't correctly sending push notifications
Fixed a bug where all incoming calls would be rejected and seen as calls disabled
Fixed a bug where the copy on call info messages was displaying the sender's name instead of the thread contact's name for outgoing calls
Fixed a bug where the input view wouldn't appear when creating new DM conversations
Fixed a bug where threads might not show the message request approval UI
Fixed an issue where some logic might not have run correctly when first registering an account
Fixed a bug where the note to self thread could incorrectly appear when restoring a device
Updated the GarbageCollectionJob to run onActive instead of onLaunch (since it's likely we will rarely launch)
Updated the logic for erasing an account from a device
2022-06-29 18:10:10 +10:00
ryanzhao 23563467b6 fix a crash when there is not enough 6 recently used emojis 2022-06-29 15:03:51 +10:00
Morgan Pretty 76f7e4e246 Fixed a number of bugs, added in logic to handle id blinding being enabled and migrated session SOGS IPs to domains
Added logic to handle the case when ID blinded gets switched on server-side and the app already has open groups with cached capabilities
Added logic to migrate users from using HTTP and IP-based session open groups to use the HTTPS domain name url instead
Fixed a bug with the PushNotificationAPI update registration response structure
Fixed some broken unit tests (and a bug which was introduced in an earlier optimisation)
Fixed a bug where trusting a contact (to download their messages) wouldn't trigger the message UI to update
Fixed a bug where tapping a push notification wasn't opening the associated thread when the app isn't running in the background
2022-06-28 17:53:03 +10:00
Morgan Pretty ff2d96e0d5 Fixed a handful more bugs
Fixed an issue where I'd shifted push notification logic to a background thread resulting in crashes
Fixed a bug where the status indicator view on the FullConversationCell was incorrectly showing for incoming messages
Fixed a bug where outgoing messages to closed groups would all be flagged as failed to send
Fixed a bug with the "autoLoadNextPageIfNeeded" on the conversation screen
Fixed a bug where the input view on a closed group wouldn't appear correctly based on whether the user was a member or not
Added the "autoLoadNextPageIfNeeded" logic to the home screen
2022-06-27 17:57:46 +10:00
Ryan Zhao 45998a3066 WIP: fix long press on a message which is too tall to show 2022-06-27 17:11:02 +10:00
Morgan Pretty 2cd9f571da Fixed a number of bugs
Fixed a bug where threads might not be getting marked as read correctly
Fixed a bug where the GarbageCollectionJob could end up blocking the database write thread (seemed to only hang when the debugger was attached but may have affected devices at some point)
Fixed a bug with thread sorting
Fixed a bug where joining an open group wouldn't appear until after the first poll completed
Fixed a bug where conversations with no interactions would display odd interaction copy
Fixed a bug where the sender name was appearing above outgoing messages in groups
2022-06-27 12:04:51 +10:00
Morgan Pretty 20dc74bc96 Added paging to the Home/MessageRequests screens and fix a bunch of bugs
Added a cache to the Identicon to prevent unneeded image generation
Replaced some 'withTint' calls to use the standard 'withRenderingMode' instead
Fixed a bug where the background would remain when swiping to reply
Fixed a crash which could occur with String-based settings
Fixed an issue where all messages in a thread wouldn't get marked as read when opening the thread (ie. existing behaviour)
Fixed a bug where going to the all media screen from a specific
Fixed a bug where the 'areCallsEnabled' preference wasn't getting migrated
Fixed a bug where you couldn't join any of the default open groups
Fixed a bug where it was polling for the invalid placeholder default open group
Fixed a few threading issues related to PromiseKit defaulting to run on the main thread
Updated and number of processes to run on "default" priority queues intead of "userInitiated" ones (since the docs suggest those are blocking)
Optimised the PagedDatabaseObserver to do a much more efficient count query
Updated the PagedDatabaseObserver to allow for triggering content updates when data changes outside of the paged or associated tables changes
Updated the HomeVC and MessageRequestsViewController to use paged queries
Made some optimisations to prevent unneeded database changes
2022-06-24 18:29:45 +10:00
Morgan Pretty 8288680f72 Added a restore account button to the failed migrations alert
Fixed a couple of bugs around restoring the "approved" state for message requests
Fixed a bug where the last message body for conversations was incorrectly trying to include deleted messages
2022-06-23 17:30:18 +10:00
Ryan Zhao ee9d856e3c ui: fix reaction views automatically collapse 2022-06-23 16:21:02 +10:00
Morgan Pretty 346ce3d24a Added a button to the settings screen to trigger a re-migration of the database 2022-06-23 15:52:50 +10:00
Morgan Pretty 5722cfe7d0 Fixed a bunch of bugs
Fixed a bug where call messages weren't getting migrated correctly
Fixed a bug where the conversation screen would be dismissed when returning from the background
Fixed a bug where the conversation screen wasn't starting focused on the first unread message
Fixed a bug where contacts that were approved might not be approved after the migration (flags weren't stored correctly previously???)
Fixed a bug where the closed group members might not be migrated correctly
Fixed a bug where some legacy info messages could be mistakenly migrated as call messages instead of message request acceptance messages
Fixed a bug where the last message wasn't showing it's "sent" status correctly
Fixed a bug where the QuoteView wasn't laying out the same way it used to
Removed some buggy animations when sending/receiving single messages
2022-06-23 15:51:19 +10:00
Ryan Zhao b6b99fac69 refactor: use view model for reaction button 2022-06-23 10:49:01 +10:00