diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index 69a9b64..4d1a375 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -1212,12 +1212,6 @@ class ChatController extends State if (choice == 'file') { sendFileAction(); } - if (choice == 'image') { - sendFileAction(type: FileSelectorType.images); - } - if (choice == 'video') { - sendFileAction(type: FileSelectorType.videos); - } if (choice == 'camera') { openCameraAction(); } diff --git a/lib/pages/chat/chat_input_row.dart b/lib/pages/chat/chat_input_row.dart index 83dca1d..22fa6c7 100644 --- a/lib/pages/chat/chat_input_row.dart +++ b/lib/pages/chat/chat_input_row.dart @@ -152,30 +152,30 @@ class ChatInputRow extends StatelessWidget { contentPadding: const EdgeInsets.all(0), ), ), - PopupMenuItem( - value: 'image', - child: ListTile( - leading: CircleAvatar( - backgroundColor: theme.colorScheme.onPrimaryContainer, - foregroundColor: theme.colorScheme.primaryContainer, - child: const Icon(Icons.photo_outlined), - ), - title: Text(L10n.of(context).sendImage), - contentPadding: const EdgeInsets.all(0), - ), - ), - PopupMenuItem( - value: 'video', - child: ListTile( - leading: CircleAvatar( - backgroundColor: theme.colorScheme.onPrimaryContainer, - foregroundColor: theme.colorScheme.primaryContainer, - child: const Icon(Icons.video_camera_back_outlined), - ), - title: Text(L10n.of(context).sendVideo), - contentPadding: const EdgeInsets.all(0), - ), - ), + // PopupMenuItem( + // value: 'image', + // child: ListTile( + // leading: CircleAvatar( + // backgroundColor: theme.colorScheme.onPrimaryContainer, + // foregroundColor: theme.colorScheme.primaryContainer, + // child: const Icon(Icons.photo_outlined), + // ), + // title: Text(L10n.of(context).sendImage), + // contentPadding: const EdgeInsets.all(0), + // ), + // ), + // PopupMenuItem( + // value: 'video', + // child: ListTile( + // leading: CircleAvatar( + // backgroundColor: theme.colorScheme.onPrimaryContainer, + // foregroundColor: theme.colorScheme.primaryContainer, + // child: const Icon(Icons.video_camera_back_outlined), + // ), + // title: Text(L10n.of(context).sendVideo), + // contentPadding: const EdgeInsets.all(0), + // ), + // ), PopupMenuItem( value: 'file', child: ListTile( diff --git a/pubspec.lock b/pubspec.lock index 3c83481..12399a1 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1153,8 +1153,8 @@ packages: matrix: dependency: "direct main" description: - path: "/home/officialdakari/repos/matrix-dart-sdk" - relative: false + path: "../matrix-dart-sdk" + relative: true source: path version: "0.40.0" meta: