mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Allow group deselection
This commit is contained in:
parent
1db0db3929
commit
0f7d073db1
@ -613,15 +613,15 @@ final class ShareWithPeersScreenComponent: Component {
|
||||
controller.present(alertController, in: .window(.root))
|
||||
}
|
||||
|
||||
if groupTooLarge {
|
||||
showCountLimitAlert()
|
||||
return
|
||||
}
|
||||
|
||||
var append = false
|
||||
if let index = self.selectedGroups.firstIndex(of: peer.id) {
|
||||
self.selectedGroups.remove(at: index)
|
||||
} else {
|
||||
if groupTooLarge {
|
||||
showCountLimitAlert()
|
||||
return
|
||||
}
|
||||
|
||||
self.selectedGroups.append(peer.id)
|
||||
append = true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user