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 {
|
void voiceMessageAction() async {
|
||||||
|
room.client.getConfig(); // Preload server file configuration.
|
||||||
|
|
||||||
final scaffoldMessenger = ScaffoldMessenger.of(context);
|
final scaffoldMessenger = ScaffoldMessenger.of(context);
|
||||||
if (PlatformInfos.isAndroid) {
|
if (PlatformInfos.isAndroid) {
|
||||||
final info = await DeviceInfoPlugin().androidInfo;
|
final info = await DeviceInfoPlugin().androidInfo;
|
||||||
|
|
@ -1168,6 +1170,8 @@ class ChatController extends State<ChatPageWithRoom>
|
||||||
}
|
}
|
||||||
|
|
||||||
void onAddPopupMenuButtonSelected(String choice) {
|
void onAddPopupMenuButtonSelected(String choice) {
|
||||||
|
room.client.getConfig(); // Preload server file configuration.
|
||||||
|
|
||||||
if (choice == 'file') {
|
if (choice == 'file') {
|
||||||
sendFileAction();
|
sendFileAction();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue