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
3 years ago
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
3 years ago
RyanZhao
82606a6244
Merge pull request #602 from mpretty-cyro/feature/remove-OWSBlockingManager
...
Remove the OWSBlockingManager
3 years ago
ryanzhao
801f0d68a8
fix an edge case where a config message might get isApproved set to false
3 years ago
Morgan Pretty
21924ee81a
Merge branch 'dev' into feature/remove-OWSBlockingManager
...
# Conflicts:
# Session.xcodeproj/project.pbxproj
3 years ago
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
3 years ago
RyanZhao
74f1d9a6d4
Merge pull request #596 from mpretty-cyro/feature/improve-open-group-deletion-processing
...
Performance: Improve open group deletion processing
3 years ago
Morgan Pretty
7165b9e4f6
Merge branch 'dev' into feature/remove-OWSBlockingManager
...
# Conflicts:
# Session/Conversations/ConversationVC+Interaction.swift
# Session/Meta/AppDelegate.swift
# SessionMessagingKit/Messages/Control Messages/ConfigurationMessage+Convenience.swift
# SessionMessagingKit/Sending & Receiving/MessageReceiver+Handling.swift
3 years ago
Morgan Pretty
3663e63bc7
Swapped the Config message 'filter' to a 'compactMap' because apparently that doesn't crash
3 years ago
Morgan Pretty
212c5e87aa
Re-added the transaction requirement when generating the current config message
3 years ago
Morgan Pretty
29c53223e0
More tweaks to fix crash
...
Wrapped the force sync calls within their own Storage.write blocks to ensure they have the latest data and aren't accessing a transaction completed in a different thread
Reverted a number of the unneeded changes
3 years ago
Morgan Pretty
1214005c59
Updated the cachedEncodedPublicKey to be Atomic
...
Added the Atomic wrapper for thread safe variables
3 years ago
Morgan Pretty
1a6c34e3b8
Removed the unused legacy OWSBackup code
3 years ago
Morgan Pretty
f8dfbd4244
Reverting change and fixing a force-cast crash
3 years ago
Morgan Pretty
6205e72eab
Change to make the 'getUser(using:)' method more consistent
3 years ago
Morgan Pretty
7aa1221987
Tweaks to the ConfigurationMessage generation logic
...
Removed force unwraps
Updated the closed group storage methods to take a transaction parameter
3 years ago
Morgan Pretty
5bb3bd7bc1
Cleaned up some config sync logic and allowed migrations to trigger them
...
Updated the migrations so they can specify whether a configuration sync is required
Moved the config sync logic into a MessageSender extension (makes far more sense than AppDelegate)
Fixed a bug where the ShareVC was triggering the 'versionMigrationsDidComplete' twice
Removed a couple of imports for files that had been deleted
3 years ago
Morgan Pretty
78c0d000be
Removed the OWSBlockingManager replacing it with the config sync
...
Fixed an issue where the "block" button would appear in the NoteToSelf swipe menu
Removed the OWSBlockingManager and supporting files
Removed a number of unused classes and methods
Refactored the BlockListUIUtils to Swift
3 years ago
Morgan Pretty
b90904ebbd
Updated the code to only update the last message hash once the MessageReceiveJobs have been created
3 years ago
Morgan Pretty
4e26ece92a
Merge branch 'dev' into feature/improve-open-group-deletion-processing
3 years ago
Morgan Pretty
1492232224
Made some optimisations to open group deletion handling
...
Added a new OpenGroupServerIdLookup to make it easier to get a database id via an open group server id
Added a migration to generate the above data
Updated the handleCompactBody method to stop early if there are no messages to delete (would previously enumerate all interactions regardless)
Updated the handleCompactBody to fetch the mapping for the deleted message so we can avoid enumerating all interactions
3 years ago
Morgan Pretty
c9edac4ea8
Updated the code to add the port if present...
3 years ago
Morgan Pretty
7ae1342341
Fixed an issue where open groups with no scheme in the url might not match correctly
3 years ago
RyanZhao
c7bf20dd85
Merge pull request #593 from mpretty-cyro/fix/duplicate-open-groups-from-url-differences
...
Fix duplicate open groups from url differences
3 years ago
RyanZhao
9e020948d6
Merge pull request #594 from RyanRory/bug-fixes-1.11.23
...
Bug fixes for 1.11.22
3 years ago
RyanZhao
34bc0e54d6
Merge pull request #590 from mpretty-cyro/fix/open-group-url-parsing
...
Fix for parsing open group urls with no scheme
3 years ago
RyanZhao
c1632bee36
Merge pull request #589 from mpretty-cyro/fix/ensure-contacts-blocked-state-syncs-correctly
...
Fix to ensure contacts blocked state syncs correctly
3 years ago
Morgan Pretty
83fa679574
Fixed some incorrect logic (previously prevented joining other rooms in a server)
3 years ago
Ryan Zhao
8652268557
add logs & fix PN
3 years ago
Morgan Pretty
d3b54b84d0
Prevent the user from joining duplicate open groups due to url differences
...
Updated the OpenGroupManagerV2 to handle HTTP scheme variants and official host variants when checking if the user is already in an open group
3 years ago
Morgan Pretty
452614d190
Fixed a bug where the OpenGroup url parsing wasn't working for a certain URL structure
3 years ago
Morgan Pretty
d4c0acb2a7
Updated the configuration message to sync the blocked state correctly
3 years ago
Morgan Pretty
2e10ccf99d
Updated the code to cache the retrieval of the user public key
3 years ago
Ryan Zhao
6f927a5003
minor refactor
3 years ago
Ryan Zhao
a1e47419c8
minor refactor
3 years ago
Ryan Zhao
b920dbcc10
check if the incoming message is already in database before persisting
3 years ago
Ryan Zhao
48c74d9476
refactor to apply this logic to unread message count
3 years ago
Ryan Zhao
06958babcb
fix unread mention indicator showing after the message is deleted
3 years ago
Ryan Zhao
30e1f34782
fix configuration message may include contacts that shouldn't be visible
3 years ago
Morgan Pretty
0e15c63e6b
Fixed a case where a the share extension wasn't using a transaction version of a method
3 years ago
Morgan Pretty
c2e13f02bc
Fixed a crash which could occur while processing message request notifications due to not using a DB transaction
3 years ago
RyanZhao
20f99df0be
Merge pull request #577 from RyanRory/bug-fix-1-11-22
...
Bug fix 1.11.22
3 years ago
Ryan Zhao
e72f0f528d
fix notification body for attachments
3 years ago
Morgan Pretty
3e380ede4e
A couple of message request fixes
...
Added an error state to the OpenGroupSuggestionGrid
Fixed a bug where the settings button wouldn't appear for the sender of a message request once approved
3 years ago
Morgan Pretty
c0e90152ce
Fixes for config message handling
...
Updated the config message handling to try fetch the existing contact first before creating a new one
Updated the OpenGroupManagerV2 to avoid joining an open group if the user already has a thread for it and is polling it
3 years ago
RyanZhao
d80042cf7f
Merge pull request #573 from mpretty-cyro/fix/only-sync-closed-groups-once
...
Fix to Only Sync Closed Groups Once
3 years ago
Morgan Pretty
0f78e1af61
Updated the code to only add closed groups for the first config message received
3 years ago
Ryan Zhao
b632f6a925
avoid conflicts with call beta in TSInfoMessageType
3 years ago
Ryan Zhao
60e8da3bff
Merge branch 'dev' into preformance-improvement
3 years ago
Morgan Pretty
af543b980b
Made a couple of changes to how the ConfigurationMessage is generated and handled
...
Stopped configuration messages from automatically creating threads for sync'ed contacts (now they will only be created if there are messages)
Updated the ConfigurationMessage to stop truncating the list of contacts but filter the full set (also update the logic to include previously approved contacts)
3 years ago