UI improvements

This commit is contained in:
Ali
2023-01-24 16:39:27 +01:00
parent e943444b48
commit a7c9ee2de7
4 changed files with 310 additions and 9 deletions

View File

@@ -196,7 +196,7 @@ func inputPanelForChatPresentationIntefaceState(_ chatPresentationInterfaceState
}
}
if isMember && !channel.hasPermission(.sendSomething) && !channel.flags.contains(.isGigagroup) {
if case .group = channel.info, isMember && !channel.hasPermission(.sendSomething) && !channel.flags.contains(.isGigagroup) {
if let currentPanel = (currentPanel as? ChatRestrictedInputPanelNode) ?? (currentSecondaryPanel as? ChatRestrictedInputPanelNode) {
return (currentPanel, nil)
} else {