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) { if (client.database != null) {
for (final device in deviceKeys) { for (final device in deviceKeys) {
if (!olmSessions.containsKey(device.curve25519Key)) { if (!olmSessions.containsKey(device.curve25519Key)) {
final sessions = await client.database.getSingleOlmSessions( final sessions =
client.id, device.curve25519Key, client.userID); await getOlmSessionsFromDatabase(device.curve25519Key);
if (sessions.isNotEmpty) { if (sessions.isNotEmpty) {
_olmSessions[device.curve25519Key] = sessions; _olmSessions[device.curve25519Key] = sessions;
} }