web: when marking spam, also mark it as read

This commit is contained in:
2024-04-14 08:17:36 -07:00
parent a96b553b08
commit 48f66c7096
2 changed files with 12 additions and 5 deletions

View File

@@ -443,6 +443,7 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
open_messages.insert(id);
}
}
Msg::MultiMsg(msgs) => msgs.into_iter().for_each(|msg| update(msg, model, orders)),
}
}
// `Model` describes our app state.
@@ -541,4 +542,5 @@ pub enum Msg {
MessageCollapse(String),
MessageExpand(String),
MultiMsg(Vec<Msg>),
}