diff --git a/ui/src/components/mail/listing/compact.rs b/ui/src/components/mail/listing/compact.rs index c31d1022e..e3fa4023f 100644 --- a/ui/src/components/mail/listing/compact.rs +++ b/ui/src/components/mail/listing/compact.rs @@ -1195,9 +1195,9 @@ impl Component for CompactListing { self.filter(filter_term, context); self.dirty = true; } - Action::Listing(a @ SetRead) - | Action::Listing(a @ SetUnread) - | Action::Listing(a @ Delete) => { + Action::Listing(a @ ListingAction::SetSeen) + | Action::Listing(a @ ListingAction::SetUnseen) + | Action::Listing(a @ ListingAction::Delete) => { /* Iterate over selection if exists, else only over the envelope under the * cursor. Using two iterators allows chaining them which results into a Chain * type. We can't conditonally select either a slice iterator or a Map iterator @@ -1225,7 +1225,7 @@ impl Component for CompactListing { continue; } match a { - SetRead => { + ListingAction::SetSeen => { let hash = account.get_env(&i).hash(); let op = account.operation(hash); let envelope: &mut Envelope = &mut account.get_env_mut(&i); @@ -1236,7 +1236,7 @@ impl Component for CompactListing { } self.row_updates.push(i); } - SetUnread => { + ListingAction::SetUnseen => { let hash = account.get_env(&i).hash(); let op = account.operation(hash); let envelope: &mut Envelope = &mut account.get_env_mut(&i); @@ -1247,7 +1247,7 @@ impl Component for CompactListing { } self.row_updates.push(i); } - Delete => { /* do nothing */ } + ListingAction::Delete => { /* do nothing */ } _ => unreachable!(), } } diff --git a/ui/src/execute.rs b/ui/src/execute.rs index a78334153..29a130954 100644 --- a/ui/src/execute.rs +++ b/ui/src/execute.rs @@ -49,8 +49,8 @@ define_commands!([ preceded!( ws!(tag!("set")), alt_complete!( - map!(ws!(tag!("read")), |_| Listing(SetRead)) - | map!(ws!(tag!("unread")), |_| Listing(SetUnread)) + map!(ws!(tag!("seen")), |_| Listing(SetSeen)) + | map!(ws!(tag!("unseen")), |_| Listing(SetUnseen)) ) ) | map!(ws!(tag!("delete")), |_| Listing(Delete)) ) diff --git a/ui/src/execute/actions.rs b/ui/src/execute/actions.rs index 9b569c534..5edd8a50a 100644 --- a/ui/src/execute/actions.rs +++ b/ui/src/execute/actions.rs @@ -37,8 +37,8 @@ pub enum ListingAction { SetThreaded, SetCompact, Filter(String), - SetRead, - SetUnread, + SetSeen, + SetUnseen, Delete, }