mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix voice chats in legacy groups
This commit is contained in:
@@ -522,6 +522,15 @@ public func stopGroupCall(account: Account, peerId: PeerId, callId: Int64, acces
|
||||
return updated
|
||||
})
|
||||
}
|
||||
if var peer = transaction.getPeer(peerId) as? TelegramGroup {
|
||||
var flags = peer.flags
|
||||
flags.remove(.hasVoiceChat)
|
||||
flags.remove(.hasActiveVoiceChat)
|
||||
peer = peer.updateFlags(flags: flags, version: peer.version)
|
||||
updatePeers(transaction: transaction, peers: [peer], update: { _, updated in
|
||||
return updated
|
||||
})
|
||||
}
|
||||
|
||||
account.stateManager.addUpdates(result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user