9fdc7acf5b
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> |
||
---|---|---|
.. | ||
auth | ||
calendar | ||
crypto | ||
format | ||
marker | ||
parse | ||
sort | ||
statusline | ||
templates | ||
ui | ||
uidstore | ||
attachment.go | ||
dirstore.go | ||
history.go | ||
keepalive_dummy.go | ||
keepalive_linux.go | ||
messageview.go | ||
msgstore.go | ||
oauthbearer.go | ||
open.go | ||
socket.go | ||
structure_helpers.go | ||
structure_helpers_test.go | ||
threadbuilder.go |