Commit Graph

1000 Commits (43b6f0b6497459485636889364dd21169af10eec)

Author SHA1 Message Date
Ryan Zhao 651373234a feat: add capability check for open group emoji reacts 2 years ago
Ryan Zhao f7a4c92d38 Merge branch 'dev' into emoji-reacts 2 years ago
Morgan Pretty d116ac0ebe Fixed an issue where the 2.0.2 migration broke the original _003_ migration 2 years ago
ryanzhao 0a9856d49a tweak: fix reaction notifications 2 years ago
ryanzhao c26e6f7e9e Merge branch 'dev' into emoji-reacts 2 years ago
ryanzhao 131cb9170b Merge branch 'dev' into emoji-reacts 2 years ago
Morgan Pretty 362986e73a Fixed a bug where the notification sound "preview" playing wasn't working 2 years ago
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
2 years ago
Morgan Pretty 9f4d1a678a Fixed a bug where deleted incoming messages could incorrectly be counted as unread 2 years ago
Morgan Pretty 0ce96976bf Fixed an issue where the open group seqNo wasn't updated for deletions 2 years ago
ryanzhao 9c9f1e3cd3 tweak: encode and sign reaction endpoints with raw emoji 2 years ago
Morgan Pretty e007870c34 Fixed a bug where disappearing messages weren't working for local outgoing messages 2 years ago
Ryan Zhao 88e419aac0 clean 2 years ago
Ryan Zhao 645f8e1d24 tweak: add update types of reaction to query parameter 2 years ago
Ryan Zhao 4a5674f7b3 tweak: keep the old logic of removing open group messsages 2 years ago
Ryan Zhao 4cb2d81670 clean up 2 years ago
ryanzhao ba578fcb3c Merge branch 'dev' into emoji-reacts 2 years ago
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)
2 years ago
Ryan Zhao aaf91c3327 Merge branch 'database-refactor' into emoji-reacts 2 years ago
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
2 years ago
Ryan Zhao 7383ddad04 update sortId logic after open group reaction index 2 years ago
Ryan Zhao 91afad99d5 Merge branch 'database-refactor' into emoji-reacts 2 years ago
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
2 years ago
ryanzhao 073516ae78 feat: add sortId for reaction sorting 2 years ago
ryanzhao 99e4614bf8 Merge branch 'database-refactor' into emoji-reacts 2 years ago
Morgan Pretty ecbded3819 Cleaned up the poller logic a bit 2 years ago
Ryan Zhao a2c9bee269 WIP: add sortId 2 years ago
Ryan Zhao 37f876dffd deal with blinded id reactor 2 years ago
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)
2 years ago
Ryan Zhao 4d0b47fa7f clean 2 years ago
Ryan Zhao 6e0c812c6d fix a crash where reactors in open group doesn't have a profile 2 years ago
ryanzhao 30e48209e2 feat: persist open group reactions into local database 2 years ago
ryanzhao cd08c792d3 WIP: include reactions into open group message detail info 2 years ago
ryanzhao 1c9d23eeb5 Merge branch 'database-refactor' into emoji-reacts 2 years ago
ryanzhao 19a1edb33a WIP: persist reaction locally 2 years ago
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)
2 years ago
ryanzhao a742e97d00 feat: decode reactions when polling for open group messages 2 years ago
ryanzhao f99ae07309 Merge branch 'database-refactor' into emoji-reacts 2 years ago
Ryan Zhao 85162cd8a2 WIP: decode open group reactions 2 years ago
Morgan Pretty 8f3e7fc36a Removed the debug code and added a migration to remove the old YDB
Fixed a typo
2 years ago
Ryan Zhao 28f4aad691 clean 2 years ago
Ryan Zhao a66948812e feat: open group emoji reacts endpoints work 2 years ago
Morgan Pretty b468efc33b Updated the GarbageCollectionJob to log the number of files it removes 2 years ago
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
2 years ago
ryanzhao 8920cbdc28 Merge branch 'database-refactor' into emoji-reacts 2 years ago
Morgan Pretty c022f7cda2 Added an exponential back-off to polling open groups when they fail to poll 2 years ago
Ryan Zhao f7a6d0dbb0 feat: add & delete emoji reacts in open groups 2 years ago
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
2 years ago
Ryan Zhao cc2bf11950 feat: remove all reaction per emoji for open group moderation. 2 years ago
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)
2 years ago