pull/427/head
Brice-W 4 years ago
parent 9e790986f6
commit dbcf19529b

@ -386,7 +386,10 @@ extension MessageReceiver {
thread = t
thread.setGroupModel(group, with: transaction)
let storage = SNMessagingKitConfiguration.shared.storage
storage.setZombieMembers(for: groupPublicKey, to: [], using: transaction)
// clearing zombie list if the group was not active before the update is received
if (!storage.isClosedGroup(groupPublicKey)) {
storage.setZombieMembers(for: groupPublicKey, to: [], using: transaction)
}
} else {
thread = TSGroupThread.getOrCreateThread(with: group, transaction: transaction)
thread.save(with: transaction)

Loading…
Cancel
Save