fix for closed groups

This commit is contained in:
ryanzhao 2020-05-20 11:12:00 +10:00
parent df1b2d249f
commit dc73553a56

View file

@ -205,6 +205,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)