fix: Add missing copy map in matrix sdk database
This commit is contained in:
parent
fe4ff1a1e2
commit
43db98c7b6
|
|
@ -503,7 +503,7 @@ class MatrixSdkDatabase extends DatabaseApi {
|
||||||
final rawSessions = await _olmSessionsBox.get(identityKey);
|
final rawSessions = await _olmSessionsBox.get(identityKey);
|
||||||
if (rawSessions == null || rawSessions.isEmpty) return <OlmSession>[];
|
if (rawSessions == null || rawSessions.isEmpty) return <OlmSession>[];
|
||||||
return rawSessions.values
|
return rawSessions.values
|
||||||
.map((json) => OlmSession.fromJson(json, userId))
|
.map((json) => OlmSession.fromJson(copyMap(json), userId))
|
||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue