From 8fefdf80ad40c17bd2eaf07b433c58d4fbc836ef Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Tue, 25 Jun 2019 10:41:55 +0300 Subject: [PATCH] ui: don't send StartupCheck or MailboxUpdate on Envelope change events --- ui/src/state.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/ui/src/state.rs b/ui/src/state.rs index e4879fb53..96495f14f 100644 --- a/ui/src/state.rs +++ b/ui/src/state.rs @@ -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.",