chore: Preload server file config before upload files
This commit is contained in:
parent
4ca098cc65
commit
130a094f35
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue