fix: Add missing copy map in matrix sdk database

This commit is contained in:
Krille 2023-12-27 15:45:44 +01:00
parent fe4ff1a1e2
commit 43db98c7b6
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
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); 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();
} }