From 130a094f35b76ee121dc26864d085684fab7b3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Sun, 1 Jun 2025 18:31:42 +0200 Subject: [PATCH] chore: Preload server file config before upload files --- lib/pages/chat/chat.dart | 4 ++++ 1 file changed, 4 insertions(+) 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(); }