From 8a0214df0315c05ded82b5c740e6d15d354051af Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Wed, 6 Sep 2023 19:07:01 +0530 Subject: [PATCH] fix(ui): `allowedAttachmentPickerTypes` not working on mobile devices. Signed-off-by: Sahil Kumar --- .../attachment_picker/stream_attachment_picker.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker.dart b/packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker.dart index 94a81412..d62d6fb4 100644 --- a/packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker.dart +++ b/packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker.dart @@ -799,7 +799,7 @@ Widget mobileAttachmentPickerBuilder({ ); }, ), - }..where((option) => option.supportedTypes.every(allowedTypes.contains)), + }.where((option) => option.supportedTypes.every(allowedTypes.contains)), }, ); }