web: handle expand/collapse of messages separate from unread status

This commit is contained in:
2024-02-20 19:58:50 -08:00
parent fe980c5468
commit 5923547159
5 changed files with 95 additions and 47 deletions

View File

@@ -12,7 +12,10 @@ pub(super) fn view(model: &Model) -> Node<Msg> {
// Do two queries, one without `unread` so it loads fast, then a second with unread.
let content = match &model.context {
Context::None => div![h1!["Loading"]],
Context::ThreadResult(thread) => view::thread(thread),
Context::ThreadResult {
thread,
open_messages,
} => view::thread(thread, open_messages),
Context::SearchResult {
query,
results,