fix: Fluffychat sometimes forgetting that a client is logged in
This commit is contained in:
parent
b7053c2044
commit
55c072f746
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue