mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
Merge branch 'soru/fix-account-forgetting' into 'main'
fix: Fluffychat sometimes forgetting that a client is logged in See merge request famedly/fluffychat!523
This commit is contained in:
commit
2b2b7104f0
@ -30,7 +30,10 @@ abstract class ClientManager {
|
||||
Logs().w('Client names in store are corrupted', e, s);
|
||||
await Store().deleteItem(clientNamespace);
|
||||
}
|
||||
if (clientNames.isEmpty) clientNames.add(PlatformInfos.clientName);
|
||||
if (clientNames.isEmpty) {
|
||||
clientNames.add(PlatformInfos.clientName);
|
||||
await Store().setItem(clientNamespace, jsonEncode(clientNames.toList()));
|
||||
}
|
||||
final clients = clientNames.map(createClient).toList();
|
||||
await Future.wait(clients.map((client) => client
|
||||
.init(waitForFirstSync: false)
|
||||
|
Loading…
Reference in New Issue
Block a user