web: change exit catchup behavior to view current message

This commit is contained in:
2025-02-24 14:55:51 -08:00
parent 1452746305
commit 9346c46e62
2 changed files with 8 additions and 4 deletions

View File

@@ -586,7 +586,7 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
model.versions.server = Some(version);
}
Msg::StartCatchup => {
Msg::CatchupStart => {
let query = if model.query.contains("is:unread") {
model.query.to_string()
} else {
@@ -625,6 +625,9 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
return;
};
}
Msg::CatchupExit => {
model.catchup = None;
}
}
}
@@ -778,8 +781,9 @@ pub enum Msg {
SetProgress(f64),
UpdateServerVersion(String),
StartCatchup,
CatchupStart,
CatchupKeepUnread,
CatchupMarkAsRead,
CatchupNext,
CatchupExit,
}