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

View file

@ -335,19 +335,6 @@ func (w *worker) handleFetchMessageBodyPart(
}, },
}, nil) }, 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) w.done(msg)
return nil return nil
} }