Commit graph

140 commits

Author SHA1 Message Date
Morgan Pretty f7fd15dae0 Finished removing usages to non-theme colour variables
Updated theming throughout
Fixed a couple of bugs with the media gallery
2022-09-20 16:06:01 +10:00
Morgan Pretty 1bc6b0bdba Merge remote-tracking branch 'upstream/dev' into feature/theming
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Conversations/ConversationVC+Interaction.swift
#	Session/Conversations/ConversationVC.swift
#	Session/Conversations/ConversationViewModel.swift
#	Session/Conversations/Message Cells/VisibleMessageCell.swift
#	Session/Home/HomeVC.swift
#	Session/Home/Message Requests/MessageRequestsViewController.swift
#	Session/Media Viewing & Editing/MediaTileViewController.swift
#	Session/Meta/AppDelegate.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/Onboarding/LandingVC.swift
#	SessionMessagingKitTests/_TestUtilities/MockGeneralCache.swift
2022-09-15 14:22:11 +10:00
Morgan Pretty fe14bb1b31 Fixed a couple of bugs and did some more theming
Started trying to add the unit tests that were in the settings refactor branch (need to be refactored due to the implementation changes)
Fixed a bug where the typing indicators wouldn't get cleaned up in some cases
2022-09-13 17:57:13 +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 87c2bc3700 tweaks on the logic to suspend database when call is ended in background 2022-09-07 10:46:39 +10:00
ryanzhao 7c1d332763 move database suspending logic when handling calls in background after writeAsync 2022-09-06 12:16:58 +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 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
Ryan Zhao 3cfee13768 minor refactor to prevent fake calls 2022-09-01 16:27:21 +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
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 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
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
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 a998cadbb7 Fixed the broken unit tests
Fixed a few bugs uncovered by the unit tests
2022-06-22 14:27:34 +10:00
Morgan Pretty 4133a49a34 Made a couple of tweaks to the GRDBStorage interface
Updated the ControlMessageProcessRecord to allow for duplicate handling of UnsendRequest messages
2022-06-21 13:39:46 +10:00
Morgan Pretty eeccfb47d5 Fixed all of the build errors from merge, migrated Call logic, started idBlinding migration and bug fixes
Fixed some broken file paths
Fixed a couple of bugs with closed groups
Fixed a few migration issues
Fixed a bug with the ProfilePictureView in open groups (was including the open parenthesis in the initials)
Migrated the Id Blinding changes to work with GRDB
Migrated the call logic to work with GRDB
Updated the code to work the with hard fork changes
2022-06-09 18:37:44 +10:00
Morgan Pretty 531ddcb079 Replaced the GoogleWebRTC library (deprecated) with WebRTC-lib 2022-05-13 11:54:36 +10:00
Ryan Zhao 4da0ccdd44 fix an issue where current call implementation won't compile for simulators 2022-04-26 15:59:37 +10:00
Ryan Zhao 95d120266d show incoming call banner for CallKit disabled cases 2022-04-21 12:17:00 +10:00
Ryan Zhao fba6dbcf9b refactor to make CallKit disabled for China mainland 2022-04-21 12:07:21 +10:00
ryanzhao 5ebb2ceee3 fix call duration label get hidden 2022-04-07 17:02:57 +10:00
ryanzhao 343df684d9 fix race condition for callkit 2022-04-07 12:29:09 +10:00
ryanzhao 6cb3e1db22 add interaction for showing missed call tips if the permission is denied 2022-04-06 17:24:48 +10:00
ryanzhao 5fa63286da refactor timeout logic for calls incoming and reconnecting 2022-04-06 15:41:38 +10:00
ryanzhao f2cfa29b21 add call related logs to log file 2022-04-05 16:35:09 +10:00
Ryan Zhao 07c18927f2 minor fix to prevent redundant offer 2022-03-25 16:29:52 +11:00
Ryan Zhao 9df52a0a89 implement new approach for call reconnection 2022-03-25 13:26:26 +11:00
Ryan Zhao e7c564914d makes more sense on call timeout 2022-03-24 15:05:00 +11:00
Ryan Zhao 952a3d3414 minor fix for merging 2022-03-02 14:46:23 +11:00
Ryan Zhao 3fb7babecb clean 2022-02-15 13:59:01 +11:00
Ryan Zhao 7333d50825 rotate button if needed 2022-02-15 10:12:12 +11:00
Ryan Zhao 7d00897907 minor clean up 2022-02-14 11:21:32 +11:00
Ryan Zhao f7af8141c0 fix CallKit failed to report new incoming calls in focus mode 2022-02-11 10:59:23 +11:00
Ryan Zhao 54493e56ef minor fix on top & bottom margin 2022-02-09 15:42:36 +11:00
Ryan Zhao 657f91ccf9 fix mini call view (remote video view) rotation and dragging issue 2022-02-09 15:27:19 +11:00
Ryan Zhao be1767a4ba clean 2022-02-08 14:14:33 +11:00
Ryan Zhao 65d78533c9 add comments 2022-02-08 13:43:53 +11:00
Ryan Zhao 80b18f0715 fix local video view weird rotation behaviour 2022-02-08 13:35:17 +11:00
Ryan Zhao e563353842 improve video scale 2022-02-08 12:08:01 +11:00
Ryan Zhao 782dd20ddd implement screen rotation for video calls 2022-02-08 11:04:18 +11:00
Ryan Zhao 29cd6fb312 fix minor issues 2022-01-06 10:08:59 +11:00
Ryan Zhao fb99bc6abd minor refactor on the local video view to make it draggable 2021-12-21 14:36:50 +11:00
Ryan Zhao 36985f6fa7 operation panel UI fix 2021-12-14 14:34:59 +11:00
Ryan Zhao e413b9da86 enable calls 2021-12-14 13:57:25 +11:00
ryanzhao f2e3ae909f disable making calls 2021-12-09 14:28:27 +11:00