Skip to content

Commit d3a290c

Browse files
authored
Merge branch 'master' into feature/pin-and-archive-channel
2 parents 4cd01d1 + e027192 commit d3a290c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/stream_chat_flutter/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
events in the Channel class.
1212
- [[#2150]](https://github.com/GetStream/stream-chat-flutter/issues/2150) Fixed Push notifications
1313
for mentions shows user ID instead of Username.
14+
- [[#2203]](https://github.com/GetStream/stream-chat-flutter/issues/2203) Fixed StreamMessageInput
15+
shows Poll option even if polls are disabled in channel config.
1416

1517
## 9.7.0
1618

packages/stream_chat_flutter/lib/src/message_input/stream_message_input.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ class StreamMessageInputState extends State<StreamMessageInput>
969969
if (it != AttachmentPickerType.poll) return false;
970970
if (_effectiveController.message.parentId != null) return true;
971971
final channel = StreamChannel.of(context).channel;
972-
if (channel.canSendPoll) return false;
972+
if (channel.config?.polls == true && channel.canSendPoll) return false;
973973

974974
return true;
975975
});

0 commit comments

Comments
 (0)