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:
commit
e4b2bec812
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue