From 5b4e592371b246ec55f560380f15bfea516c1b16 Mon Sep 17 00:00:00 2001 From: Zach Sisco Date: Fri, 28 Jun 2019 09:15:55 -0400 Subject: [PATCH] panic: runtime error: index out of range in handleFetchMessages (#127) --- lib/msgstore.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/msgstore.go b/lib/msgstore.go index 45a9fb6..09cf31f 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -132,9 +132,7 @@ func (store *MessageStore) Update(msg types.WorkerMessage) { switch msg := msg.(type) { case *types.DirectoryInfo: store.DirInfo = *msg - if store.DirInfo.Exists != len(store.Uids) { - store.worker.PostAction(&types.FetchDirectoryContents{}, nil) - } + store.worker.PostAction(&types.FetchDirectoryContents{}, nil) update = true case *types.DirectoryContents: newMap := make(map[uint32]*types.MessageInfo)