ui, ThreadView: update seen flag in ThreadEntries

Update seen flag when receiving EnvelopeRename events.
pull/234/head
Manos Pitsidianakis 5 years ago
parent 84950ad740
commit 16a5d9b28a
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -1016,9 +1016,15 @@ impl Component for ThreadView {
self.set_dirty();
}
UIEvent::EnvelopeRename(ref old_hash, ref new_hash) => {
let account = &context.accounts[self.coordinates.0];
for e in self.entries.iter_mut() {
if e.msg_hash == *old_hash {
e.msg_hash = *new_hash;
let seen: bool = account.get_env(&new_hash).is_seen();
if seen != e.seen {
self.dirty = true;
}
e.seen = seen;
}
}
self.mailview

Loading…
Cancel
Save