From a93b4de6f3c362d6e0db0b1f6d3f2e1c9a5cd64d Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Wed, 11 Sep 2019 21:01:05 +0200 Subject: Add modify-labels command This adds the event type as well as the command implementation, but no backend supports it yet. --- lib/msgstore.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/msgstore.go') 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) +} -- cgit v1.2.3