diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index e4a9427ca..9c9c2076e 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -878,7 +878,10 @@ class ChatController extends State final files = await selectFiles( context, allowMultiple: true, - type: FileSelectorType.images, + // #Pangea + // type: FileSelectorType.images, + type: FileSelectorType.media, + // Pangea# ); if (files.isEmpty) return; diff --git a/lib/utils/file_selector.dart b/lib/utils/file_selector.dart index 015eca533..f04f7ac63 100644 --- a/lib/utils/file_selector.dart +++ b/lib/utils/file_selector.dart @@ -75,7 +75,10 @@ enum FileSelectorType { ], FileType.custom, ['zip', 'ZIP'], - ); + ), + // #Pangea + media([], FileType.media, null); + // Pangea# const FileSelectorType(this.groups, this.filePickerType, this.extensions); final List groups;