web: when marking spam, also mark it as read
This commit is contained in:
@@ -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>),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user