bugfix: unsubscribe from timelines on deck deletion

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-07-17 21:25:09 -04:00
parent d4082eb818
commit 1c547bbcaa
2 changed files with 43 additions and 3 deletions

View File

@@ -119,7 +119,12 @@ impl SwitchingAction {
get_decks_mut(ctx.accounts, decks_cache).set_active(index)
}
DecksAction::Removing(index) => {
get_decks_mut(ctx.accounts, decks_cache).remove_deck(index)
get_decks_mut(ctx.accounts, decks_cache).remove_deck(
index,
timeline_cache,
ctx.ndb,
ctx.pool,
);
}
},
}