Fix synchronization when initializing user storage
This commit is contained in:
parent
1b60ab3f0d
commit
5b4f2762e5
@ -133,9 +133,10 @@ public final class LocalDB implements EventListener {
|
||||
chats = (List<Chat>) in.readObject();
|
||||
cacheMap = (CacheMap) in.readObject();
|
||||
lastSync = (Instant) in.readObject();
|
||||
}
|
||||
} finally {
|
||||
synchronize();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Synchronizes the contact list of the client user with the chat and user
|
||||
@ -188,6 +189,12 @@ public final class LocalDB implements EventListener {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores a new authentication token.
|
||||
*
|
||||
* @param evt the event containing the authentication token
|
||||
* @since Envoy Client v0.2-beta
|
||||
*/
|
||||
@Event
|
||||
private void onNewAuthToken(NewAuthToken evt) { authToken = evt.get(); }
|
||||
|
||||
|
Reference in New Issue
Block a user