Commit Graph

41 Commits

Author SHA1 Message Date
Morgan Pretty d0be7f786c Fixed a hang, removed redundant libs, files and code
Fixed an issue where returning the app from the background would result in the app staying permanently on the splash screen
Included a CRC32 implementation so we can drop the CryptoSwift dependenciy (using CryptoKit everywhere else)
Removed 'SocketRocket' (unused)
Removed the `xcode_14_3_workaround` post-install hook (fixed with CocoaPods 1.12.1)
Removed the `enable_fts5_support` post-install hook (enabled by default since GRDB 6.7.0 so redundant)
Removed the `enable_whole_module_optimization_for_crypto_swift` post-install hook (dropped CryptoSwift support)
Cleared out a bunch of headers from the Signal-Bridging-header file (direct imports instead to reduce incremental build sizes)
Deleted some unused code
2023-06-29 16:58:23 +10:00
Morgan Pretty 5d88db7a8a Merge remote-tracking branch 'origin/feature/tweak-profile-modal-ui' into feature/updated-user-config-handling
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Calls/Call Management/SessionCall.swift
#	Session/Conversations/ConversationVC.swift
#	Session/Conversations/Input View/MentionSelectionView.swift
#	Session/Conversations/Message Cells/VisibleMessageCell.swift
#	Session/Settings/SettingsViewModel.swift
#	Session/Shared/Views/SessionAvatarCell.swift
#	Session/Shared/Views/SessionCell+AccessoryView.swift
#	SessionUIKit/Components/ConfirmationModal.swift
#	SessionUIKit/Components/PlaceholderIcon.swift
#	SignalUtilitiesKit/Profile Pictures/ProfilePictureView.swift
2023-05-26 17:54:45 +10:00
Morgan Pretty 2d792e4e3e Updated the profile picture modal and standardised the ProfilePictureView sizes
Fixed an issue where 'CurrentAppContext().isMainAppAndActive' wasn't called on the main thread
Updated the ProfilePictureView to have the updated icon UI
2023-05-24 13:33:53 +10:00
Morgan Pretty 1345e89809 Further config util logic
Removed the usage of the OWSAES256Key (using CryptoKit and raw data instead)
Removed the pre-compiled headers to speed up builds with minor changes (explicit imports instead)

# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	SessionMessagingKit/Database/Models/ClosedGroup.swift
#	SessionMessagingKit/Protos/Generated/SNProto.swift
#	SessionMessagingKit/Protos/Generated/SessionProtos.pb.swift
#	SessionMessagingKit/Protos/SessionProtos.proto
#	SessionMessagingKit/Sending & Receiving/MessageSender.swift
#	SessionMessagingKit/Sending & Receiving/Pollers/CurrentUserPoller.swift
#	SessionMessagingKit/Utilities/ProfileManager.swift
#	SessionSnodeKit/Models/DeleteAllMessagesRequest.swift
#	SessionSnodeKit/Models/GetMessagesRequest.swift
#	SessionSnodeKit/Models/SendMessageRequest.swift
#	SessionSnodeKit/Types/SnodeAPINamespace.swift
2022-12-07 15:06:15 +11:00
ryanzhao 48c0c06c4b cherry pick bacd call fix & clean 2022-10-14 14:59:19 +11: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 31605672e2 fix call threading issues 2022-09-05 11:27:25 +10:00
ryanzhao 80894bc198 suspend database when call is ended in background 2022-09-02 17:04:15 +10:00
Ryan Zhao 3cfee13768 minor refactor to prevent fake calls 2022-09-01 16:27:21 +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 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 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
Ryan Zhao fba6dbcf9b refactor to make CallKit disabled for China mainland 2022-04-21 12:07:21 +10:00
ryanzhao 343df684d9 fix race condition for callkit 2022-04-07 12:29:09 +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 e7c564914d makes more sense on call timeout 2022-03-24 15:05:00 +11:00
Ryan Zhao 3fb7babecb clean 2022-02-15 13:59:01 +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 4560f7e122 fix unreasonable ending call actions 2021-12-02 13:30:41 +11:00
Ryan Zhao 570c3fbe3b add ringtone and other UI improvement 2021-11-29 16:32:02 +11:00
Ryan Zhao 9e6c81d28b improve call message UI 2021-11-29 12:10:33 +11:00
Ryan Zhao 0a3d84d5c8 WIP: Call message Ui improvements 2021-11-26 16:57:57 +11:00
Ryan Zhao e504e23f92 minor fix 2021-11-19 11:50:14 +11:00
Ryan Zhao e9f19b9c62 fix duplicated incoming call 2021-11-19 10:04:00 +11:00
Ryan Zhao 81dd4557a5 sync answer and end call message 2021-11-18 13:19:47 +11:00
ryanzhao ee83523621 clean 2021-11-12 13:43:00 +11:00
ryanzhao 02d0499618 seperate CallKit uuid from session call id 2021-11-12 09:17:06 +11:00
ryanzhao 9346864843 end call if there is no answer in 60s 2021-11-11 16:51:54 +11:00
ryanzhao 336c694b52 refactoring on showing call ip exposure 2021-11-11 12:12:12 +11:00
ryanzhao da14539639 handle busy 2021-11-11 11:09:52 +11:00
ryanzhao 9d42c73de1 disable add call 2021-11-10 11:17:35 +11:00
ryanzhao ff79c58f44 update call message after a call ended 2021-11-09 16:05:23 +11:00
ryanzhao f019fe7733 use CallKit for all cases 2021-11-09 11:53:38 +11:00
ryanzhao 888df37581 fix call connection 2021-11-08 15:09:45 +11:00
ryanzhao bef20e2f9a refactor for CallKit 2021-11-08 09:12:18 +11:00
ryanzhao 4db87992b2 refactor for voip push notification 2021-10-29 15:22:23 +11:00
ryanzhao 0ef7bdc9ce refactor to plug in callkit 2021-10-28 17:02:41 +11:00