Merge pull request #1667 from famedly/krille/add-missing-copy-map

fix: Add missing copy map in matrix sdk database
This commit is contained in:
Krille-chan 2023-12-27 16:02:03 +01:00 committed by GitHub
commit e4b2bec812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ class MatrixSdkDatabase extends DatabaseApi {
final rawSessions = await _olmSessionsBox.get(identityKey);
if (rawSessions == null || rawSessions.isEmpty) return <OlmSession>[];
return rawSessions.values
.map((json) => OlmSession.fromJson(json, userId))
.map((json) => OlmSession.fromJson(copyMap(json), userId))
.toList();
}