diff options
Diffstat (limited to 'melib/src/mailbox/collection.rs')
-rw-r--r-- | melib/src/mailbox/collection.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/melib/src/mailbox/collection.rs b/melib/src/mailbox/collection.rs index 54ffaaa3..9dffab4b 100644 --- a/melib/src/mailbox/collection.rs +++ b/melib/src/mailbox/collection.rs @@ -107,7 +107,7 @@ impl Collection { env.set_hash(new_hash); self.envelopes.insert(new_hash, env); { - if self.threads.update_envelope(old_hash, new_hash).is_ok() { + if self.threads.update_envelope(old_hash, new_hash, &self.envelopes).is_ok() { return; } } @@ -123,7 +123,7 @@ impl Collection { let new_hash = envelope.hash(); self.envelopes.insert(new_hash, envelope); { - if self.threads.update_envelope(old_hash, new_hash).is_ok() { + if self.threads.update_envelope(old_hash, new_hash, &self.envelopes).is_ok() { return; } } |