diff options
Diffstat (limited to 'lib/msgstore.go')
-rw-r--r-- | lib/msgstore.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go index 86215a72..dda15d3b 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -333,11 +333,12 @@ func (store *MessageStore) Move(uids []uint32, dest string, createDest bool, store.update() } -func (store *MessageStore) Read(uids []uint32, read bool, - cb func(msg types.WorkerMessage)) { +func (store *MessageStore) Flag(uids []uint32, flag models.Flag, + enable bool, cb func(msg types.WorkerMessage)) { - store.worker.PostAction(&types.ReadMessages{ - Read: read, + store.worker.PostAction(&types.FlagMessages{ + Enable: enable, + Flag: flag, Uids: uids, }, cb) } |