update function call

This commit is contained in:
Sorunome 2020-06-24 09:30:25 +02:00
parent b109e75962
commit fb48837d08
No known key found for this signature in database
GPG key ID: B19471D07FC9BE9C

View file

@ -462,8 +462,8 @@ class OlmManager {
if (client.database != null) {
for (final device in deviceKeys) {
if (!olmSessions.containsKey(device.curve25519Key)) {
final sessions = await client.database.getSingleOlmSessions(
client.id, device.curve25519Key, client.userID);
final sessions =
await getOlmSessionsFromDatabase(device.curve25519Key);
if (sessions.isNotEmpty) {
_olmSessions[device.curve25519Key] = sessions;
}