From 6cfd921be0597bdaba79f7243921e65b73ac337c Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 6 Mar 2024 16:00:33 +0000 Subject: [PATCH] fix: remove voice note option on web --- lib/src/components/organisms/chat/message_input.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/components/organisms/chat/message_input.dart b/lib/src/components/organisms/chat/message_input.dart index 2950c13..2e71514 100644 --- a/lib/src/components/organisms/chat/message_input.dart +++ b/lib/src/components/organisms/chat/message_input.dart @@ -56,6 +56,9 @@ class ZdsMessageInput extends StatefulWidget { final void Function(List file)? onUploadFiles; /// Enables voice notes to be sent as messages + /// + /// Does not currently work on web. + /// /// Defaults to false final bool allowVoiceNotes; @@ -330,7 +333,7 @@ class ZdsMessageInputState extends State with SingleTickerProvi }, ), ), - if (widget.allowVoiceNotes) + if (widget.allowVoiceNotes && !kIsWeb) IconButton( icon: Icon(Icons.mic, size: 24, color: zetaColors.iconSubtle), tooltip: ComponentStrings.of(context).get(