Fix channel input panel when left as creator

This commit is contained in:
Ali 2020-03-25 23:43:30 +04:00
parent 4abab11e7e
commit 0502cef37d

View File

@ -127,7 +127,7 @@ func inputPanelForChatPresentationIntefaceState(_ chatPresentationInterfaceState
case .broadcast:
if chatPresentationInterfaceState.interfaceState.editMessage != nil, channel.hasPermission(.editAllMessages) {
displayInputTextPanel = true
} else if !channel.hasPermission(.sendMessages) {
} else if !channel.hasPermission(.sendMessages) || !isMember {
if let currentPanel = (currentPanel as? ChatChannelSubscriberInputPanelNode) ?? (currentSecondaryPanel as? ChatChannelSubscriberInputPanelNode) {
return (currentPanel, nil)
} else {