only show toolbar if the message is text or audio

This commit is contained in:
ggurdin 2024-09-11 15:26:39 -04:00
parent 1605fd95f3
commit bd25cda630
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -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();