Skip to content

Commit 3bd377f

Browse files
committed
fix(ui): remove extraneous attachment options
1 parent 5ec19d3 commit 3bd377f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker_bottom_sheet.dart

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,7 @@ Future<T?> showStreamAttachmentPickerModalBottomSheet<T>({
146146
optionsBuilder: optionsBuilder == null
147147
? null
148148
: (context, defaultOptions) {
149-
final attachmentOptions = defaultOptions
150-
.map((option) => AttachmentPickerOption(
151-
key: option.key,
152-
icon: option.icon,
153-
title: option.title,
154-
supportedTypes: option.supportedTypes,
155-
))
156-
.toList();
157-
return optionsBuilder(context, attachmentOptions)
149+
return optionsBuilder(context, defaultOptions)
158150
.map(WebOrDesktopAttachmentPickerOption
159151
.fromAttachmentPickerOption)
160152
.toList();

0 commit comments

Comments
 (0)