Commit graph

1277 commits

Author SHA1 Message Date
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
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
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
1c94dd65d3 Merge branch 'dev' into ui-media-message 2022-08-17 10:23:16 +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
e007870c34 Fixed a bug where disappearing messages weren't working for local outgoing messages 2022-08-12 08:32:31 +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
ba578fcb3c Merge branch 'dev' into emoji-reacts 2022-08-09 16:00:30 +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
Ryan Zhao
aaf91c3327 Merge branch 'database-refactor' into emoji-reacts 2022-08-08 15:00:00 +10:00
Ryan Zhao
f60f68e150 Merge branch 'database-refactor' into ui-media-message 2022-08-08 14:58:17 +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
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
8f98cb5ca8 Merge branch 'database-refactor' into ui-media-message 2022-08-05 09:55:32 +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
7b63e52314 Merge branch 'database-refactor' into ui-media-message 2022-08-03 09:58:52 +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
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