Set AnsweredFlag on successful reply

This commit is contained in:
Srivathsan Murali 2020-05-25 16:59:48 +02:00 committed by Drew DeVault
parent a31d184ba5
commit b1eb7ad18d
11 changed files with 179 additions and 0 deletions

View file

@ -342,6 +342,15 @@ func (store *MessageStore) Read(uids []uint32, read bool,
}, cb)
}
func (store *MessageStore) Answered(uids []uint32, answered bool,
cb func(msg types.WorkerMessage)) {
store.worker.PostAction(&types.AnsweredMessages{
Answered: answered,
Uids: uids,
}, cb)
}
func (store *MessageStore) Uids() []uint32 {
if store.filter {
return store.results