Commit Graph

65 Commits (a6c7e252a734faad0d1f2bc3fd60207c962e8878)

Author SHA1 Message Date
Morgan Pretty 8f120c4380 Started re-adding media gallery interactions (in progress)
Fixed up quote attachment sending and retrieval
Validated attachment sending and retrieving is working correctly
Re-added the AttachmentUploadJob migration
3 years ago
Morgan Pretty f4ca219030 Re-added a bunch of functionality to the home and message requests screens
Cleared out some more legacy code which has been refactored
3 years ago
Morgan Pretty b541666ef0 Got the ability to send message working again and other tweaks
Tested and fixed a couple of issues with the disappearingMessages job
Added a simple dependency system for jobs (primarily for the AttachmentUploadJob, but will likely be others later)
Setup the AttachmentUploadJob again (looks like there are cases which use it)
Prevented a possible infinite job deferral loop from causing the app to crash (the loop is still technically possible but the app will continue to run now)
Updated the interactions unique constraints based on testing and discussions around how the serverHash works
Deleted the legacy ReadReceipt handling (now managed via the 'interaction.wasRead' flag and 'SendReadReceiptsJob')
Deleted the unused SSKIncrementingIdFinder
3 years ago
Morgan Pretty 32304ae5dd Cleared out some of the legacy serialisation logic, further UI binding
Refactored the SignalApp class to Swift
Fixed a horizontal alignment issue in the ConversationTitleView
Fixed an issue where expiration timer update messages weren't migrated or rendering correctly
Fixed an issue where expiring messages weren't migrated correctly
Fixed an issue where closed groups which had been left were causing migration failures (due to data incorrectly being assumed to be required)
Shifted the Legacy Attachment types into the 'SMKLegacy' namespace
Moved all of the NSCoding logic for the TSMessage
3 years ago
Morgan Pretty 4380f1975c Further work on the DB refactoring
Added the rest of the interaction structure to the database (testing some migration logic now - still needs to be finalised)
Updated the YDBToGRDB migrations to wrap their inserts in autorelease pools (helps memory slightly, unfortunately it's caching the YDB data which uses the most memory but we have opted for speed over RAM at the moment)
Updated the MockDataGenerator so it should now "chunk" the code generation (crazy large figures were previously resulting in excessive memory usage)
3 years ago
Morgan Pretty cf66edb723 Further work on SessionMessagingKit migrations
Added migrations for contacts and started working through thread migration (have contact and closed group threads migrating)
Deprecated usage of ECKeyPair in the migrations (want to be able to remove Curve25519Kit in the future)
3 years ago
Ryan Zhao b632f6a925 avoid conflicts with call beta in TSInfoMessageType 3 years ago
Morgan Pretty decb946bf3 Fixed an unrecognised selector crash hidden by the conversion of Objective-C to Swift 3 years ago
Morgan Pretty 1b3f6c0ca6 Minor tweaks to the message request banner on the HomeVC
Fixed the unread message counting for message requests
Updated the message request banner to indicate the number of message requests with an unread message
Updated the message request banner to automatically disappear if the user has no unread message requests
Renamed a variable for ReadReceipt management to make it a bit more self-documenting (it looked like it would trigger a read receipt to be sent regardless of the setting)
3 years ago
Morgan Pretty cd61fb8df0 Merge branch 'dev' into feature/message-requests
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	SignalUtilitiesKit/Utilities/UIColor+Extensions.swift
3 years ago
Morgan Pretty 9db5083cc5 Built out the Message Request functionality
Added the MessageRequestsViewController
Added a 'Message Requests' button to the settings screen
Added accept/reject buttons for message requests to the ConversationVC
Added the ability to hide the message request item on the HomeVC (re-appears if you get a new message request)
Added code to handle an edge-case where the message request approval state wouldn't be returned to the sender due to the recipient running an old version of the app
Prevented contacts which aren't associated with an approved thread from appearing when creating a closed group
Disabled notifications for threads which aren't approved
Updated the app notification count to exclude unapproved messages
Updated the app to ignore closed group creation messages if the group has no admins which are approved contacts
Fixed up the keyboard avoidance behaviour in the ConversationVC
Fixed a couple of minor interaction issues which affected some devices
Fixed an issue where the database migrations would run on the 2nd launch when creating a new account (causing odd behaviours)
3 years ago
Ryan Zhao 5ce7aa49ee mark messages with undownloaded attachments as read as well 3 years ago
ryanzhao dcd3997a78 fix an issue where untrusted contact's media message will never be marked as read 4 years ago
ryanzhao d319840c04 clean unused server timestamp 4 years ago
ryanzhao da335a8401 clean 4 years ago
ryanzhao 132ff0416f set server timestamp as open group message's sent timestamp 4 years ago
ryanzhao 0ed748074b remove deleted message for linked devices 4 years ago
Ryan Zhao eaab6ee22d deleted message UI in conversation screen 4 years ago
ryanzhao 8d53a775d2 Revert "delete real message and sync message together"
This reverts commit cc17a952e0.
4 years ago
ryanzhao cc17a952e0 delete real message and sync message together 4 years ago
Ryan Zhao 050a2ec534 store server hash value for visible messages 4 years ago
Ryan Zhao c68350f3d8 store hash value for outgoing messages 4 years ago
Ryan Zhao e2a0578770 cancel local notifications for unsend requests 4 years ago
Ryan Zhao 423feae426 add notify reply and clean 4 years ago
Niels Andriesse 44288c45e9 Fix auto scroll to bottom bug 4 years ago
ryanzhao 69dea75486 potentially fix the conversation stuck at unread 4 years ago
Niels Andriesse 3fda8daec9 Merge branch 'dev' into cleanup 4 years ago
Niels Andriesse 61dd768e5c Minor refactoring 4 years ago
Ryan ZHAO d7a7abc11e start expiration timer after attachments downloaded 4 years ago
Niels Andriesse e4d1925436 Show confirmation dialog 4 years ago
Niels Andriesse bd04775cbf Implement open group invitations UI 4 years ago
nielsandriesse ed047ac512 More cleanup 4 years ago
nielsandriesse a098ba7125 Remove unused code 4 years ago
nielsandriesse 05d688a6d3 Add missing enum case 4 years ago
nielsandriesse 955e3abdad Clean up group update handling 4 years ago
nielsandriesse 49f3b9f7db Rename contactIdentifier → contactSessionID 4 years ago
Niels Andriesse 709c0f1463 Add documentation 4 years ago
Ryan ZHAO d897952ce0 use sent timestamp instead of received timestamp for sorting and UI 4 years ago
Ryan ZHAO d360353c17 fix open group message sort id 4 years ago
Ryan ZHAO 7a593862c9 minor fix 4 years ago
Ryan ZHAO 72807c52b7 fix open group message timestamp 4 years ago
Niels Andriesse 1a12487292 Clean 4 years ago
ryanzhao 1893ccac76 use TSIncomingMessage's serverTimastamp to make more sense 4 years ago
Ryan ZHAO fcc3c27779 fix unread message count bug 4 years ago
Niels Andriesse 08015f570f Create DataExtractionNotificationInfoMessage 4 years ago
Niels Andriesse dd0baf0d97 Unify contacts APIs 4 years ago
Niels Andriesse 90e53e5cef Redesign conversation screen part 1 4 years ago
Niels Andriesse 7acb6c9ac3 Merge branch 'dev' into multi-device 4 years ago
Niels Andriesse 4e590da262 Fix incorrect timer update copy in closed groups 4 years ago
Niels Andriesse 6b7b158000 Debug 4 years ago