diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-25 10:41:55 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-25 10:41:55 +0300 |
commit | 8fefdf80ad40c17bd2eaf07b433c58d4fbc836ef (patch) | |
tree | 79435316016dc3b1432edf4b8d7a424f8b748061 | |
parent | 22dbc7dd9f93ca8d8c7dd83f07e3986cd51d93dc (diff) |
ui: don't send StartupCheck or MailboxUpdate on Envelope change events
-rw-r--r-- | ui/src/state.rs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/ui/src/state.rs b/ui/src/state.rs index e4879fb5..96495f14 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.", |