Skip to content

Commit

Permalink
add remove on cache on parent change too
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonLe committed Nov 5, 2024
1 parent b851270 commit 27e24e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,8 @@ class Client extends MatrixApi {
}
onEvent.add(update);

if (event.type == EventTypes.SpaceChild) {
if (event.type == EventTypes.SpaceChild ||
event.type == EventTypes.SpaceParent) {
await database?.removeSpaceHierarchy(room.id);
}

Expand Down

0 comments on commit 27e24e5

Please sign in to comment.