summaryrefslogtreecommitdiffstats
path: root/ui/src/conf/accounts.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-06-19 19:39:40 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-06-19 19:40:15 +0300
commit04fc510ea83dde6f6182aa34d2c33a01877d097c (patch)
treea8c3ec1412175f04ca1e06c10867cb7c8c06169a /ui/src/conf/accounts.rs
parent06862c1484fbfbe18c2323066437d79b0cb465b1 (diff)
meli: insert new standalone nodes in insert_reply
Diffstat (limited to 'ui/src/conf/accounts.rs')
-rw-r--r--ui/src/conf/accounts.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/conf/accounts.rs b/ui/src/conf/accounts.rs
index 52cc9a24..4fe63497 100644
--- a/ui/src/conf/accounts.rs
+++ b/ui/src/conf/accounts.rs
@@ -315,7 +315,6 @@ impl Account {
let env_hash = envelope.hash();
let mailbox = mailbox!(&folder_hash, self.folders);
mailbox.insert(env_hash);
- self.collection.insert(*envelope, folder_hash);
if self
.sent_folder
.as_ref()
@@ -323,6 +322,8 @@ impl Account {
.unwrap_or(false)
{
self.collection.insert_reply(env_hash);
+ } else {
+ self.collection.insert(*envelope, folder_hash);
}
let ref_folders: FnvHashMap<FolderHash, Folder> = self.backend.folders();