mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-19 01:24:21 +01:00
bugfix: unsubscribe all decks when log out account
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -94,9 +94,15 @@ impl SwitchingAction {
|
||||
.router_mut()
|
||||
.go_back();
|
||||
}
|
||||
AccountsAction::Remove(to_remove) => {
|
||||
ctx.accounts
|
||||
.remove_account(to_remove, ctx.ndb, ctx.pool, ui_ctx);
|
||||
AccountsAction::Remove(to_remove) => 's: {
|
||||
if !ctx
|
||||
.accounts
|
||||
.remove_account(to_remove, ctx.ndb, ctx.pool, ui_ctx)
|
||||
{
|
||||
break 's;
|
||||
}
|
||||
|
||||
decks_cache.remove(to_remove, timeline_cache, ctx.ndb, ctx.pool);
|
||||
}
|
||||
},
|
||||
SwitchingAction::Columns(columns_action) => match *columns_action {
|
||||
|
||||
Reference in New Issue
Block a user