Merge pull request #675 from pangeachat/restrict-toolbar-msg-types

only show toolbar if the message is text or audio
pull/1384/head
ggurdin 1 year ago committed by GitHub
commit 489129f36a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save