aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2020-02-28 23:45:25 +0000
committerDrew DeVault <sir@cmpwn.com>2020-02-28 19:00:23 -0500
commit583b129c9470a060d17c952b46dbe1bffc4c0c49 (patch)
tree50571bac474744c32d94a35d1d3e91bdc370e9f5 /widgets
parent01c96e78dfe88056e0e6ff4155354f7a985c9af9 (diff)
Don't set the store on an update to it
Updates to a store can be asynchronous so we shouldn't select it just because it had an update. Selection of the stores should be driven by explicit user commands.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/account.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/widgets/account.go b/widgets/account.go
index f8b6581..8f94e92 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -252,10 +252,6 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) {
}
})
acct.dirlist.SetMsgStore(msg.Info.Name, store)
- store.OnUpdate(func(_ *lib.MessageStore) {
- store.OnUpdate(nil)
- acct.msglist.SetStore(store)
- })
}
case *types.DirectoryContents:
if store, ok := acct.dirlist.SelectedMsgStore(); ok {