diff options
author | Reto Brunner <reto@labrat.space> | 2019-09-11 21:01:05 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-09-12 16:17:24 -0400 |
commit | a93b4de6f3c362d6e0db0b1f6d3f2e1c9a5cd64d (patch) | |
tree | d5b2451f9a5bb6d79b284ea618361ed4d8eb4a33 /lib | |
parent | 618a500341d54ec5bec6d035a86b1307ff1dad0a (diff) |
Add modify-labels command
This adds the event type as well as the command implementation, but no backend
supports it yet.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msgstore.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go index 2733288..73c79e7 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -425,3 +425,12 @@ func (store *MessageStore) NextResult() { func (store *MessageStore) PrevResult() { store.nextPrevResult(-1) } + +func (store *MessageStore) ModifyLabels(uids []uint32, add, remove []string, + cb func(msg types.WorkerMessage)) { + store.worker.PostAction(&types.ModifyLabels{ + Uids: uids, + Add: add, + Remove: remove, + }, cb) +} |