Merge pull request #2090 from famedly/krille/add-missing-copy-map-in-database

fix: Add missing copy json in updateInboundGroupdSessionAllowedAtInde…
This commit is contained in:
Krille-chan 2025-05-13 10:24:46 +02:00 committed by GitHub
commit aba37559f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -1511,8 +1511,9 @@ class MatrixSdkDatabase extends DatabaseApi with DatabaseFileStorage {
);
return;
}
raw['allowed_at_index'] = allowedAtIndex;
await _inboundGroupSessionsBox.put(sessionId, raw);
final json = copyMap(raw);
json['allowed_at_index'] = allowedAtIndex;
await _inboundGroupSessionsBox.put(sessionId, json);
return;
}