chore: Preload server file config before upload files

This commit is contained in:
Christian Kußowski 2025-06-01 18:31:42 +02:00
parent 4ca098cc65
commit 130a094f35
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -631,6 +631,8 @@ class ChatController extends State<ChatPageWithRoom>
}
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<ChatPageWithRoom>
}
void onAddPopupMenuButtonSelected(String choice) {
room.client.getConfig(); // Preload server file configuration.
if (choice == 'file') {
sendFileAction();
}