web: handle expand/collapse of messages separate from unread status
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user