Skip to content

Commit

Permalink
fix: 🐛 fix unsupported operation issue while running on web #131 (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
apurva010 authored May 21, 2024
1 parent 67b8021 commit 555c90b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## [1.3.2] (Unreleased)

* **Fix**: [131](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/131)
Fix unsupported operation while running on the web.
* **Fix**: [160](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/pull/160) Added
configuration for emoji picker sheet.
* **Fix**: [130](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/130) Added
Expand Down
8 changes: 3 additions & 5 deletions lib/src/widgets/chatui_textfield.dart
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,9 @@ class _ChatUITextFieldState extends State<ChatUITextField> {
),
),
],
if (sendMessageConfig?.allowRecordingVoice ??
true &&
Platform.isIOS &&
Platform.isAndroid &&
!kIsWeb)
if ((sendMessageConfig?.allowRecordingVoice ?? false) &&
!kIsWeb &&
(Platform.isIOS || Platform.isAndroid))
IconButton(
onPressed: _recordOrStop,
icon: (isRecordingValue
Expand Down

0 comments on commit 555c90b

Please sign in to comment.