aslo clear ssss cache when clearing a user id

This commit is contained in:
Sorunome 2020-06-06 15:48:57 +02:00
parent 51584ad748
commit 1fdd0a7db8
No known key found for this signature in database
GPG key ID: B19471D07FC9BE9C

View file

@ -455,6 +455,7 @@ class Database extends _$Database {
await (delete(inboundGroupSessions) await (delete(inboundGroupSessions)
..where((r) => r.clientId.equals(clientId))) ..where((r) => r.clientId.equals(clientId)))
.go(); .go();
await (delete(ssssCache)..where((r) => r.clientId.equals(clientId))).go();
await (delete(olmSessions)..where((r) => r.clientId.equals(clientId))).go(); await (delete(olmSessions)..where((r) => r.clientId.equals(clientId))).go();
await (delete(userCrossSigningKeys) await (delete(userCrossSigningKeys)
..where((r) => r.clientId.equals(clientId))) ..where((r) => r.clientId.equals(clientId)))