diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-07-05 14:48:37 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-10 21:15:12 +0200 |
commit | f0c76fad7299c2c43f5891becd4f0327e0e26df5 (patch) | |
tree | 360de71aa1cef4f2c84cc0014aa86dffffd34e4b /worker/notmuch/worker.go | |
parent | a8879d79c67f2631388e244548f7499b367e93ce (diff) | |
download | aerc-f0c76fad7299c2c43f5891becd4f0327e0e26df5.tar.gz |
threading: add backend capabilities to workers
This patch provides a method to report backend capabilities to the UI.
The intial capabilities included in the report are Sort and Thread.
Having these available to the UI enables the client to better handle
server side threading.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/notmuch/worker.go')
-rw-r--r-- | worker/notmuch/worker.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go index 51e82984..35e68409 100644 --- a/worker/notmuch/worker.go +++ b/worker/notmuch/worker.go @@ -228,6 +228,11 @@ func (w *worker) gatherDirectoryInfo(name string, query string) ( // total unread Unseen: count.Unread, AccurateCounts: true, + + Caps: &models.Capabilities{ + Sort: true, + Thread: true, + }, }, } return info, nil |