mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Ensure no send as button is shown when only one peer available
This commit is contained in:
@@ -4871,6 +4871,9 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
allPeers?.insert(currentAccountPeer, at: 0)
|
||||
}
|
||||
}
|
||||
if allPeers?.count == 1 {
|
||||
allPeers = nil
|
||||
}
|
||||
strongSelf.updateChatPresentationInterfaceState(animated: true, interactive: false, {
|
||||
return $0.updatedSendAsPeers(allPeers)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user