ui: don't send StartupCheck or MailboxUpdate on Envelope change events

pull/234/head
Manos Pitsidianakis 5 years ago
parent 22dbc7dd9f
commit 8fefdf80ad
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -275,17 +275,12 @@ impl State {
return;
}
if let Some(notification) = self.context.accounts[idxa].reload(event, hash) {
self.context
.sender
.send(ThreadEvent::UIEvent(UIEvent::StartupCheck(hash)));
self.context
.sender
.send(ThreadEvent::UIEvent(UIEvent::MailboxUpdate((idxa, hash))));
self.context.replies.push_back(notification);
} else {
self.context
.replies
.push_back(UIEvent::MailboxUpdate((idxa, hash)));
}
self.context
.replies
.push_back(UIEvent::MailboxUpdate((idxa, hash)));
} else {
debug!(
"BUG: mailbox with hash {} not found in mailbox_hashes.",

Loading…
Cancel
Save