Set the store on the message list if it is nil

This commit is contained in:
Jeffas 2020-02-29 01:53:32 +00:00 committed by Drew DeVault
parent e8b7b3bcc1
commit 2a0430ab90

View file

@ -255,6 +255,9 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) {
} }
case *types.DirectoryContents: case *types.DirectoryContents:
if store, ok := acct.dirlist.SelectedMsgStore(); ok { if store, ok := acct.dirlist.SelectedMsgStore(); ok {
if acct.msglist.Store() == nil {
acct.msglist.SetStore(store)
}
store.Update(msg) store.Update(msg)
} }
case *types.FullMessage: case *types.FullMessage: