Commit Graph

1428 Commits (361c6c729c4420403d271271ca6bd78d9273beba)

Author SHA1 Message Date
ryanzhao 12a45845a3 Merge branch 'dev' into menu-redesign 2 years ago
ryanzhao 014e8620c4 bump up version & build number 2 years ago
Morgan Pretty 6a32fbaf83 Fixed a bug where the "default" notification sound wouldn't be used in the foreground 2 years ago
Ryan Zhao 0ee3302ea9 fix next button not showing the first time tapping input field 2 years ago
Ryan Zhao 1eab9d8bbd tweak: little modification on the message request acceptance description 2 years ago
Ryan Zhao 090fb940de Merge branch 'emoji-reacts' into ui-media-message 2 years ago
Ryan Zhao 838623171d tweak: always left align emoji reacts 2 years ago
Ryan Zhao 734f29e212 ui: scanning QR code view 2 years ago
Ryan Zhao bf75055096 ui: new message view - enter session id vc 2 years ago
Ryan Zhao 5dd5168b92 tweak: redo home vc plus button 2 years ago
Ryan Zhao a3c739e9cc Merge branch 'emoji-reacts' into ui-media-message 2 years ago
Ryan Zhao c7c92f747c Merge branch 'various-bugs-and-optimisations' into emoji-reacts 2 years ago
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
2 years ago
ryanzhao 53d5c7fb3f tweak: update block action background colour 2 years ago
ryanzhao 3944fe52c1 feat: show unsupported emoji 2 years ago
Ryan Zhao 43b6f0b649 WIP: unsupported emojis 2 years ago
Ryan Zhao 651373234a feat: add capability check for open group emoji reacts 2 years ago
Ryan Zhao 7ca48e9c7b tweak: fix clear all action for open group moderators 2 years ago
Ryan Zhao 36801e4876 feat: disable emoji reacts for message requests 2 years ago
Ryan Zhao 094c64bb6a tweak: fix context menu screen layout 2 years ago
ryanzhao 95cd516bce tweak: if current user reacts then their username should appear as ‘You’ 2 years ago
ryanzhao 0a9856d49a tweak: fix reaction notifications 2 years ago
ryanzhao 78d8e939f1 tweak: fix search emoji 2 years ago
ryanzhao f93820362c add silence audio file 2 years ago
ryanzhao adc6d948a2 Merge branch 'dev' into message-request-tweak 2 years ago
ryanzhao 1c94dd65d3 Merge branch 'dev' into ui-media-message 2 years ago
ryanzhao f913b7a168 Merge branch 'dev' into add-documents-section 2 years ago
ryanzhao 93e2e295bc tweak: update default emojis 2 years ago
ryanzhao 131cb9170b Merge branch 'dev' into emoji-reacts 2 years ago
Morgan Pretty b53ad0c5ed
Merge pull request #657 from mpretty-cyro/fix/use-yyimageview-only-when-needed
Only use YYImage for Gif/WebP images
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 6d6d45b283 Updated the ProfilePictureView to only use YYImage for Gif and WebP images
Added support for animated OpenGroup images
2 years ago
ryanzhao 3870c0c505 minor fix 2 years ago
ryanzhao 9657998d7b WIP: add block button to message request view 2 years ago
ryanzhao 92e6f1a356 update localised strings 2 years ago
ryanzhao 78d68bcc38 tweak: Delete -> Decline 2 years ago
ryanzhao 0ed4c7d66e tweak: “Clear all” button just delete all message request conversations instead of blocking them 2 years ago
ryanzhao db701bb0e2 feat: add a separate “Block” action when swiping a message request 2 years ago
Morgan Pretty e007870c34 Fixed a bug where disappearing messages weren't working for local outgoing messages 2 years ago
Morgan Pretty 2acc32a44b Fixed the broken MediaDetail <-> MediaTile custom transition 2 years ago
ryanzhao 76833c0b9f tweak: fix album view background in visible message cells 2 years ago
ryanzhao 827ecee7b0 tweak: fix the layout of snapshot in context menu view 2 years ago
ryanzhao 85b3015d71 clean 2 years ago
ryanzhao d02b0c90bd Merge branch 'dev' into ui-media-message 2 years ago
ryanzhao fa1a67d957 feat: show all media view with media & document sections from tapping All Media nav button 2 years ago
ryanzhao a162f324b1 feat: add select button and delete function in media title screen 2 years ago
ryanzhao 99989f9944 Merge branch 'dev' into add-documents-section 2 years ago
ryanzhao ba578fcb3c Merge branch 'dev' into emoji-reacts 2 years ago
ryanzhao 1fa505d1a2 feat: show media detail 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
ryanzhao 402bee2d38 feat: add action for document section 2 years ago
Ryan Zhao ab3bbab656 add one more localised string 2 years ago
Ryan Zhao 8c74ecbe63 add localised strings 2 years ago
Ryan Zhao bc16e3da4b fix: shift the threadId filter line above the variant and sourceFilename lines 2 years ago
Ryan Zhao aaf91c3327 Merge branch 'database-refactor' into emoji-reacts 2 years ago
Ryan Zhao f60f68e150 Merge branch 'database-refactor' into ui-media-message 2 years ago
Ryan Zhao dc0220accc Merge branch 'database-refactor' into add-documents-section 2 years ago
Ryan Zhao d98221feb4 fix: minor ui issue on the reaction user list 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
Ryan Zhao 6a1186b556 Merge branch 'database-refactor' into ui-media-message 2 years ago
Ryan Zhao 86a5fb7f1f Merge branch 'database-refactor' into add-documents-section 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 07a1d10212 fix an issue where reaction updates triggers scrolling 2 years ago
ryanzhao 073516ae78 feat: add sortId for reaction sorting 2 years ago
ryanzhao ebe422e55c Merge branch 'database-refactor' into add-documents-section 2 years ago
ryanzhao 8f98cb5ca8 Merge branch 'database-refactor' into ui-media-message 2 years ago
ryanzhao 99e4614bf8 Merge branch 'database-refactor' into emoji-reacts 2 years ago
Ryan Zhao a2c9bee269 WIP: add sortId 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
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 7b63e52314 Merge branch 'database-refactor' into ui-media-message 2 years ago
ryanzhao 61bdbe6e9b Merge branch 'database-refactor' into add-documents-section 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 f99ae07309 Merge branch 'database-refactor' into emoji-reacts 2 years ago
ryanzhao 6e144ec9b7 Merge branch 'database-refactor' into ui-media-message 2 years ago
ryanzhao 075dce02f7 Merge branch 'database-refactor' into add-documents-section 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 a66948812e feat: open group emoji reacts endpoints work 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 585e5b3547 Merge branch 'database-refactor' into ui-media-message 2 years ago
ryanzhao d70d45c32a Merge branch 'database-refactor' into add-documents-section 2 years ago
ryanzhao 8920cbdc28 Merge branch 'database-refactor' into emoji-reacts 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
ryanzhao 82f058eae8 fix snapshot 2 years ago
ryanzhao d4a6c83941 Merge branch 'database-refactor' into ui-media-message 2 years ago
ryanzhao ef36ccfd02 Merge branch 'database-refactor' into add-documents-section 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
ryanzhao 69289cbfd6 Merge branch 'database-refactor' into add-documents-section 2 years ago
ryanzhao 84e7a07ee0 Merge branch 'database-refactor' into ui-media-message 2 years ago
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)
2 years ago
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
2 years ago
ryanzhao 290ccdc639 fix long press snapshot of messages 2 years ago
ryanzhao e1c5d9411d fix highlighting 2 years ago
ryanzhao 82429a8566 fix bubble background for deleted messages and media message placeholder 2 years ago
ryanzhao 44c962eea7 fix ui issue #644 for open group messages 2 years ago
ryanzhao 88bc560c1b Merge branch 'database-refactor' into ui-media-message 2 years ago
ryanzhao 456c9ac874 Merge branch 'database-refactor' into add-documents-section 2 years ago
ryanzhao cd9a8330db fix cell ui for documents 2 years ago
ryanzhao 984643b9c7 Merge branch 'ui-media-message' of https://github.com/RyanRory/loki-messenger-ios into ui-media-message 2 years ago
ryanzhao 9ec703b698 adjust album view 2 years ago
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)
2 years ago
Ryan Zhao 8f2bf58728 Merge branch 'database-refactor' into ui-media-message 2 years ago
Ryan Zhao b7d17da9cc Merge branch 'database-refactor' into add-documents-section 2 years ago
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
2 years ago
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"
2 years ago
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.
2 years ago
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
2 years ago
ryanzhao e2d9ba6882 fix pan gesture of message cell 2 years ago
ryanzhao a123b36a47 minor fixes for voice messages and link preview 2 years ago
ryanzhao 6a6ea137f6 update media message UI 2 years ago
ryanzhao b0d78754c4 Merge branch 'database-refactor' into add-documents-section 2 years ago
ryanzhao 13ded2d4b2 minor fix 2 years ago
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
2 years ago
ryanzhao 13370dbb9e add comments 2 years ago
ryanzhao 4a914480a7 Merge branch 'database-refactor' into add-documents-section 2 years ago
ryanzhao d9f05f5b9c fix: filter voice messages with file name to prevent some cases that the attachment is not marked as voice message 2 years ago
ryanzhao 533edd903b feat: implement handle update document view 2 years ago
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
2 years ago
ryanzhao 3f9e26729c fix sql statement 2 years ago
ryanzhao 8d385de389 clean 2 years ago
ryanzhao 1e1c5a5fde Merge branch 'database-refactor' into add-documents-section 2 years ago
ryanzhao 3241d66905 clean 2 years ago
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
2 years ago
ryanzhao 5b285e6bef fix: filter audio message attachments out of documents 2 years ago
ryanzhao 87a9bf9bce feat: add view for empty and loading state of document view 2 years ago
ryanzhao 0d25fb1c48 wip: add headers for different status 2 years ago
ryanzhao ccc46dfbf8 Add “documents” section in the all media screen for a conversation 2 years ago
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
2 years ago
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
2 years ago
ryanzhao 1d9e4c88c2 fix snapshot not completed issue 2 years ago
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
2 years ago
Morgan Pretty cdb211b72a Applied the "increase min version to iOS 13" changes 2 years ago
Morgan Pretty 8cf2a57fcc Renamed GRDBStorage to Storage (no use having the prefix anymore since the old DB is deprecated) 2 years ago
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
2 years ago
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
2 years ago
Ryan Zhao e8518188ac WIP: fix snapshot 2 years ago
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
2 years ago
ryanzhao 23563467b6 fix a crash when there is not enough 6 recently used emojis 2 years ago
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
2 years ago
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
2 years ago
Ryan Zhao 45998a3066 WIP: fix long press on a message which is too tall to show 2 years ago
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
2 years ago
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
2 years ago
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
2 years ago