aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/account.go
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2020-02-29 01:53:32 +0000
committerDrew DeVault <sir@cmpwn.com>2020-02-28 20:54:15 -0500
commit2a0430ab90bdcb03d3f3243945280f29642faab0 (patch)
treebbc562b638cea094e7cb7a27f8459b10942135a9 /widgets/account.go
parente8b7b3bcc16329ab9fe402d6629db775f197b73b (diff)
downloadaerc-2a0430ab90bdcb03d3f3243945280f29642faab0.tar.gz
Set the store on the message list if it is nil
Diffstat (limited to 'widgets/account.go')
-rw-r--r--widgets/account.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go
index 8f94e92b..a854fb6e 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -255,6 +255,9 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) {
}
case *types.DirectoryContents:
if store, ok := acct.dirlist.SelectedMsgStore(); ok {
+ if acct.msglist.Store() == nil {
+ acct.msglist.SetStore(store)
+ }
store.Update(msg)
}
case *types.FullMessage: