aerc/worker/types
Tim Culverhouse 9fdc7acf5b cache: fetch flags from UI
When cached headers are fetched, an action is posted back to the Worker
to immediately fetch the flags for the message from the server (we can't
know the flags state, therefore it's not cached). When scrolling, a lag
occurs when loading cached headers because the n+1 message has to wait
for the flag request to return before the cached headers are retrieved.

Collect the message UIDs in the UI that need flags, and fetch them based
off a debounce timer in a single request. Post the action from the UI to
eliminate an (ugly) go routine in the worker.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-09-20 21:10:35 +02:00
..
messages.go cache: fetch flags from UI 2022-09-20 21:10:35 +02:00
sort.go Add sorting functionality 2019-09-20 14:56:02 -04:00
thread.go mark: (un)mark message threads 2022-08-22 09:30:37 +02:00
thread_test.go lint: apply new formatting rules 2022-08-01 10:44:52 +02:00
worker.go Revert "worker: prevent deadlock by flooding worker.Messages channel" 2022-09-20 00:37:42 +02:00