Check ComponentId equality on Composer::kill()

memfd
Manos Pitsidianakis 4 years ago
parent 63af2a688a
commit 63467a3c45
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -1007,6 +1007,10 @@ impl Component for Composer {
}
fn kill(&mut self, uuid: Uuid, context: &mut Context) {
if self.id != uuid {
return;
}
if !self.has_changes {
context.replies.push_back(UIEvent::Action(Tab(Kill(uuid))));
return;

@ -195,6 +195,7 @@ pub trait MailListingTrait: ListingTrait {
_ => unreachable!(),
}
self.row_updates().push(thread_hash);
self.set_dirty(true);
drop(envelope);
}
}

Loading…
Cancel
Save