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

embed
Manos Pitsidianakis 2019-06-25 10:41:55 +03:00
parent 22dbc7dd9f
commit 8fefdf80ad
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 4 additions and 9 deletions

View File

@ -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.",