mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Merge pull request #196 from RyanRory/sync-contact-fix
Fix Threads Not Being Shown After Sync
This commit is contained in:
commit
588c1347d6
1 changed files with 4 additions and 0 deletions
|
@ -188,6 +188,9 @@ public final class SyncMessagesProtocol : NSObject {
|
|||
storage.setFriendRequestStatus(.friends, for: hexEncodedPublicKey, transaction: transaction)
|
||||
default: break
|
||||
}
|
||||
let thread = TSContactThread.getOrCreateThread(withContactId: hexEncodedPublicKey, transaction: transaction)
|
||||
thread.shouldThreadBeVisible = true
|
||||
thread.save(with: transaction)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -205,6 +208,7 @@ public final class SyncMessagesProtocol : NSObject {
|
|||
var thread: TSGroupThread! = TSGroupThread(groupId: groupModel.groupId, transaction: transaction)
|
||||
if thread == nil {
|
||||
thread = TSGroupThread.getOrCreateThread(with: groupModel, transaction: transaction)
|
||||
thread.shouldThreadBeVisible = true
|
||||
thread.save(with: transaction)
|
||||
}
|
||||
ClosedGroupsProtocol.establishSessionsIfNeeded(with: groupModel.groupMemberIds, in: thread, using: transaction)
|
||||
|
|
Loading…
Reference in a new issue