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
1 changed files with 3 additions and 0 deletions

View File

@ -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: