diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index e5e741fc9..41afabb94 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -631,6 +631,8 @@ class ChatController extends State } void voiceMessageAction() async { + room.client.getConfig(); // Preload server file configuration. + final scaffoldMessenger = ScaffoldMessenger.of(context); if (PlatformInfos.isAndroid) { final info = await DeviceInfoPlugin().androidInfo; @@ -1168,6 +1170,8 @@ class ChatController extends State } void onAddPopupMenuButtonSelected(String choice) { + room.client.getConfig(); // Preload server file configuration. + if (choice == 'file') { sendFileAction(); }