aboutsummaryrefslogtreecommitdiffstats
path: root/lib/msgstore.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-02-29 14:40:52 +0100
committerDrew DeVault <sir@cmpwn.com>2020-02-29 13:16:33 -0500
commitf3dbecaaea16fe8956af2bbd29472243f0496995 (patch)
tree086fe851440ababd9eb5a6da73c48fd9068f1081 /lib/msgstore.go
parentfb2df7e1694a99c8c74e931453aa863125e208f2 (diff)
downloadaerc-f3dbecaaea16fe8956af2bbd29472243f0496995.tar.gz
remove the dirInfoUpdateRequest functionality
The notmuch worker followed suit in handling the dirInfo submission manually. That removes the last user so we might as well remove the functionality.
Diffstat (limited to 'lib/msgstore.go')
-rw-r--r--lib/msgstore.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index 709c7a28..481fcb93 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -183,7 +183,6 @@ func merge(to *models.MessageInfo, from *models.MessageInfo) {
func (store *MessageStore) Update(msg types.WorkerMessage) {
update := false
directoryChange := false
- requestDirInfo := false
switch msg := msg.(type) {
case *types.DirectoryInfo:
store.DirInfo = *msg.Info
@@ -229,7 +228,6 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
}
}
update = true
- requestDirInfo = true
case *types.FullMessage:
if _, ok := store.pendingBodies[msg.Content.Uid]; ok {
delete(store.pendingBodies, msg.Content.Uid)
@@ -263,7 +261,6 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
}
store.uids = uids
update = true
- requestDirInfo = true
}
if update {
@@ -273,18 +270,6 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
if directoryChange && store.triggerDirectoryChange != nil {
store.triggerDirectoryChange()
}
-
- if requestDirInfo {
- select {
- case <-store.dirInfoUpdateDebounce.C:
- store.worker.PostAction(&types.DirectoryInfoUpdateRequest{
- Name: store.DirInfo.Name,
- }, nil)
- store.dirInfoUpdateDebounce.Reset(store.dirInfoUpdateDelay)
- default:
- // do nothing
- }
- }
}
func (store *MessageStore) OnUpdate(fn func(store *MessageStore)) {