Merge pull request #675 from pangeachat/restrict-toolbar-msg-types
only show toolbar if the message is text or audio
This commit is contained in:
commit
489129f36a
1 changed files with 7 additions and 0 deletions
|
|
@ -1591,6 +1591,13 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
Event? nextEvent,
|
||||
Event? prevEvent,
|
||||
}) {
|
||||
if (![
|
||||
MessageTypes.Text,
|
||||
MessageTypes.Audio,
|
||||
].contains(pangeaMessageEvent.event.messageType)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Close keyboard, if open
|
||||
if (inputFocus.hasFocus && PlatformInfos.isMobile) {
|
||||
inputFocus.unfocus();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue