chore: Load room of first client before init GUI

This commit is contained in:
Christian Pauly 2022-11-13 12:37:13 +01:00
parent 38d65ba3ed
commit 5cce7257b4

View File

@ -19,6 +19,8 @@ void main() async {
Logs().nativeColors = !PlatformInfos.isIOS; Logs().nativeColors = !PlatformInfos.isIOS;
final clients = await ClientManager.getClients(); final clients = await ClientManager.getClients();
await clients.first.roomsLoading;
await clients.first.accountDataLoading;
if (PlatformInfos.isMobile) { if (PlatformInfos.isMobile) {
BackgroundPush.clientOnly(clients.first); BackgroundPush.clientOnly(clients.first);