Browse Source

mail/view: don't update() if coordinates are unchanged

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
66dea9148b
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 12
      src/components/mail/view.rs

12
src/components/mail/view.rs

@ -917,11 +917,13 @@ impl MailView {
new_coordinates: (AccountHash, MailboxHash, EnvelopeHash),
context: &mut Context,
) {
self.coordinates = new_coordinates;
self.mode = ViewMode::Normal;
self.initialised = false;
self.init_futures(context);
self.set_dirty(true);
if self.coordinates != new_coordinates {
self.coordinates = new_coordinates;
self.mode = ViewMode::Normal;
self.initialised = false;
self.init_futures(context);
self.set_dirty(true);
}
}
fn open_attachment(

Loading…
Cancel
Save