Skip to content

Commit

Permalink
fix: remove voice note option on web (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
thelukewalton committed Mar 8, 2024
1 parent 8e04f23 commit f30410e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/components/organisms/chat/message_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ class ZdsMessageInput extends StatefulWidget {
final void Function(List<XFile> file)? onUploadFiles;

/// Enables voice notes to be sent as messages
///
/// Does not currently work on web.
///
/// Defaults to false
final bool allowVoiceNotes;

Expand Down Expand Up @@ -330,7 +333,7 @@ class ZdsMessageInputState extends State<ZdsMessageInput> with SingleTickerProvi
},
),
),
if (widget.allowVoiceNotes)
if (widget.allowVoiceNotes && !kIsWeb)
IconButton(
icon: Icon(Icons.mic, size: 24, color: zetaColors.iconSubtle),
tooltip: ComponentStrings.of(context).get(
Expand Down

0 comments on commit f30410e

Please sign in to comment.