Commit Graph

16387 Commits

Author SHA1 Message Date
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)
2022-04-06 15:43:26 +10:00
ryanzhao 5fa63286da refactor timeout logic for calls incoming and reconnecting 2022-04-06 15:41:38 +10:00
ryanzhao 7ae982a328 Fix notifications don't respect the call disabled settings 2022-04-06 15:11:26 +10:00
ryanzhao 6c19c5cd49 bump up build number 2022-04-05 16:35:50 +10:00
ryanzhao f2cfa29b21 add call related logs to log file 2022-04-05 16:35:09 +10:00
ryanzhao 2730c3ba91 bump up version & build number 2022-04-05 11:38:42 +10:00
ryanzhao 7d3df3a016 Merge branch 'bug-fixes-1.11.25' into voice-calls-2 2022-04-05 11:36:56 +10:00
ryanzhao 49b4c7b586 fix an edge case for callkit notification 2022-04-05 11:29:59 +10:00
Ryan Zhao 77c00b6c37 fix #456 2022-04-04 16:10:28 +10:00
Ryan Zhao 43ca54c0a0 refactor to use Atomic wrapper 2022-04-04 14:40:24 +10:00
Morgan Pretty 0f4df804ed Merge branch 'dev' into feature/database-refactor
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Meta/AppDelegate.m
#	SessionMessagingKit/Utilities/OWSIdentityManager.h
#	SessionMessagingKit/Utilities/OWSIdentityManager.m
#	SignalUtilitiesKit/Database/Storage+Conformances.swift
#	SignalUtilitiesKit/Database/TSStorageHeaders.h
#	SignalUtilitiesKit/To Do/OWSPrimaryStorage+Loki.m
2022-04-04 13:41:16 +10:00
Morgan Pretty 93f248d149 Merge branch 'dev' into feature/session-id-blinding-part-2
# Conflicts:
#	SessionMessagingKit/Open Groups/OpenGroupManagerV2.swift
#	SessionMessagingKit/Storage.swift
2022-04-04 13:33:27 +10:00
Ryan Zhao a22dc15249 fix closed group poller unwrapping crash in background 2022-04-04 13:31:56 +10:00
Morgan Pretty 7256cc6871 Merge remote-tracking branch 'upstream/dev' into dev 2022-04-04 13:18:50 +10:00
Morgan Pretty 4ee4b3ffb3 Started adding migration logic for contacts
Updated the getUserHexEncodedPublicKey to take an optional db value so we can retrieve it during the initial migration
2022-04-04 13:18:14 +10:00
Ryan Zhao 36094eed7f Merge branch 'remove-unused-code' into voice-calls-2 2022-04-04 11:08:54 +10:00
RyanZhao cd3c385444
Merge pull request #610 from mpretty-cyro/feature/remove-unused-code
Remove unused code
2022-04-04 10:48:41 +10:00
Morgan Pretty 72eeb1c796 Updated the Identity type to clear everything instead of just the x25519 pair 2022-04-04 09:58:47 +10:00
Morgan Pretty 410f37f0d5 Updated the SnodeSet table name to match the type
Shifted all GRDB Snode convenience methods to be extensions on Snode (instead of SnodeSet) for consistency
2022-04-04 09:52:48 +10:00
Morgan Pretty 63db2a4e3d Updated the 'SwarmSnode' to use the 'port_https' key instead of the 'port' key (deprecated) 2022-04-04 09:33:12 +10:00
Morgan Pretty a1b4554cdb Migrated the SessionSnodeKit from YapDatabase to GRDB
Changed the min OS version to iOS 13.0 (support for 'Identifiable')
Removed the alternate approaches to fetching the userKeyPair and userPublicKeyHexString (no consistently routed through the caching method)
Migrated the 'OWSIdentityManager' logic to use the new 'Identity' type
Added the 'Setting' table and got the pattern working fairly nicely (unfortunately there isn't a good way to avoid key collision without proper enums)
Updated the SessionSnodeKit to migration it's data from YDB to GRDB
Updated the SessionSnodeKit to use GRDB throughout it's logic
2022-04-01 17:22:45 +11:00
Morgan Pretty e65682ae9b Merge branch 'dev' into feature/database-refactor
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Backups/OWSBackup.m
#	Session/Backups/OWSBackupImportJob.m
#	SessionSnodeKit/SnodeAPI.swift
2022-03-31 12:09:04 +11:00
Morgan Pretty c3b855646f Merge branch 'dev' into feature/session-id-blinding-part-2
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Conversations/Views & Modals/JoinOpenGroupModal.swift
#	Session/Open Groups/JoinOpenGroupVC.swift
#	Session/Settings/SettingsVC.swift
#	SessionMessagingKit/Sending & Receiving/MessageReceiver+Handling.swift
#	SessionMessagingKit/Sending & Receiving/MessageReceiver.swift
2022-03-31 12:03:00 +11:00
Morgan Pretty 1633105ce2 Merge branch 'dev' into feature/remove-unused-code
# Conflicts:
#	Session/Backups/OWSBackup.m
#	Session/Backups/OWSBackupImportJob.m
#	SignalUtilitiesKit/Sharing/SelectRecipientViewController.m
#	SignalUtilitiesKit/Sharing/SelectThreadViewController.m
2022-03-31 11:51:59 +11:00
Morgan Pretty 459502f1c3 Merge remote-tracking branch 'upstream/dev' into dev 2022-03-31 11:47:52 +11:00
Morgan Pretty 529e416dd1 Started work on GRDB logic and migrations
Setup a migration pattern
Setup the database configuration and security
Started defining the database schema
Started working on the migrations for SessionSnodeKit
2022-03-31 11:47:09 +11:00
Ryan Zhao 49d6a64194 Merge branch 'remove-OWSBlockingManager' into voice-calls-2 2022-03-31 11:09:09 +11:00
RyanZhao 82606a6244
Merge pull request #602 from mpretty-cyro/feature/remove-OWSBlockingManager
Remove the OWSBlockingManager
2022-03-31 10:56:35 +11:00
Morgan Pretty 89e80da625 Removed AppPreferences (unused) 2022-03-30 10:05:47 +11:00
Morgan Pretty f7091dca28 Removed an empty notification observer 2022-03-30 09:48:34 +11:00
Morgan Pretty 0842dbff1e Removed a bunch of unused code
Removed the legacy Theme code (replaced with SessionUIKit equivalents)
Removed the OWSOrphanDataCleaner (unused)
Removed the OWSReceiptType_Delivery from the OWSOutgoingReceiptManager (unused)
Removed the TSStorageKeys and TSStorageHeaders files (unused)
Removed the LKMessageIDCollection (unused - only had methods for deleting data from the collection)
Removed the OWSPrimaryStorageTrustedKeysCollection and OWSIdentityManager_QueuedVerificationStateSyncMessages (unused)
Removed collections and notifications from OWSProfileManager (unused)
2022-03-30 09:46:08 +11:00
Morgan Pretty 9e3c02f79b Removed the unused legacy OWSBackup code 2022-03-30 09:05:07 +11:00
Morgan Pretty 0e09d4b935 Merge remote-tracking branch 'upstream/dev' into dev 2022-03-30 09:04:12 +11:00
ryanzhao faf1a0e28a update build number 2022-03-29 16:11:22 +11:00
ryanzhao 5cbc0b55b3 Merge branch 'fix-message-requests-reverse' into voice-calls-2 2022-03-29 16:10:48 +11:00
ryanzhao 548aad69a9 update build number 2022-03-29 15:39:09 +11:00
RyanZhao b281ea528a
Merge pull request #609 from RyanRory/fix-message-requests-reverse
Fix approved chats back to message requests inbox
2022-03-29 15:37:56 +11:00
ryanzhao 801f0d68a8 fix an edge case where a config message might get isApproved set to false 2022-03-29 13:51:34 +11:00
Morgan Pretty 8344ed5d81 Fixed the unit tests broken by the merge
Added the ability to mock the GeneralCache data
Added a couple additional tests to validate some updated OpenGroupManager code
2022-03-29 10:15:22 +11:00
Morgan Pretty e3622088ad Fixed missed framework complication errors from merge 2022-03-29 09:30:32 +11:00
Morgan Pretty 4d5d201493 Updated the SOGSV4Migration id to be larger than the other PR values 2022-03-29 09:15:59 +11:00
Morgan Pretty 5ca227434b Merge branch 'dev' into feature/session-id-blinding-part-2
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Utilities/BackgroundPoller.swift
#	SessionMessagingKit/Database/Storage+OpenGroups.swift
#	SessionMessagingKit/Messages/Control Messages/ConfigurationMessage+Convenience.swift
#	SessionMessagingKit/Open Groups/OpenGroupAPIV2.swift
#	SessionMessagingKit/Open Groups/OpenGroupManagerV2.swift
#	SessionMessagingKit/Sending & Receiving/MessageSender.swift
#	SessionMessagingKit/Sending & Receiving/Pollers/OpenGroupPollerV2.swift
#	SessionMessagingKit/Sending & Receiving/Pollers/Poller.swift
#	SessionMessagingKit/Storage.swift
#	SessionMessagingKit/Utilities/General.swift
#	SessionSnodeKit/SnodeAPI.swift
#	SessionUtilitiesKit/General/Atomic.swift
2022-03-29 09:15:32 +11:00
Morgan Pretty 21924ee81a Merge branch 'dev' into feature/remove-OWSBlockingManager
# Conflicts:
#	Session.xcodeproj/project.pbxproj
2022-03-29 08:45:48 +11:00
Morgan Pretty 1b5eea7b4f Merge remote-tracking branch 'upstream/dev' into dev 2022-03-29 08:40:49 +11:00
Ryan Zhao 59f112c55f bump up version & build number 2022-03-28 14:45:50 +11:00
Ryan Zhao 5286af841c bump up version and build number 2022-03-28 14:32:45 +11:00
Ryan Zhao 8b3d3fffb5 Merge branch 'dev' into voice-calls-2 2022-03-28 14:29:32 +11:00
RyanZhao 479da9cc67
Merge pull request #605 from RyanRory/bug-fix-for-call
Bug fix for call
2022-03-28 14:07:16 +11:00
RyanZhao 7cd0079b37
Merge pull request #599 from mpretty-cyro/fix/update-last-message-hash-after-registering-jobs
Fix - Update last message hash after registering jobs
2022-03-28 14:06:03 +11:00
RyanZhao 74f1d9a6d4
Merge pull request #596 from mpretty-cyro/feature/improve-open-group-deletion-processing
Performance: Improve open group deletion processing
2022-03-28 14:05:46 +11:00