notmuch: remove read handling from FetchMessageBodyPart

This commit is contained in:
Reto Brunner 2020-05-07 00:18:57 +02:00 committed by Drew DeVault
parent d8533e897a
commit ee1d971554
1 changed files with 0 additions and 13 deletions

View File

@ -335,19 +335,6 @@ func (w *worker) handleFetchMessageBodyPart(
},
}, nil)
if err := m.MarkRead(true); err != nil {
w.w.Logger.Printf("could not mark message as read: %v", err)
return err
}
// send updated flags to ui
if err = w.emitMessageInfo(m, msg); err != nil {
w.w.Logger.Printf(err.Error())
}
if err = w.emitDirectoryInfo(w.currentQueryName); err != nil {
w.w.Logger.Printf(err.Error())
}
w.done(msg)
return nil
}