From bd25cda63080f0fac639b541a244b0b536e8e4c8 Mon Sep 17 00:00:00 2001 From: ggurdin Date: Wed, 11 Sep 2024 15:26:39 -0400 Subject: [PATCH] only show toolbar if the message is text or audio --- lib/pages/chat/chat.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index 3370910e7..69617b271 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -1591,6 +1591,13 @@ class ChatController extends State 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();