web: change exit catchup behavior to view current message
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user