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:
ggurdin 2024-09-11 15:27:18 -04:00 committed by GitHub
commit 489129f36a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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