Set AnsweredFlag on successful reply
This commit is contained in:
parent
a31d184ba5
commit
b1eb7ad18d
11 changed files with 179 additions and 0 deletions
lib
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue