diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-05-10 23:56:35 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-05-11 21:01:40 +0300 |
commit | c5fe511d95b817f388a98ee96349654bc9a2f0b4 (patch) | |
tree | ebc06b55f577f5a13c5139ba759ef83247a72d81 /melib/src | |
parent | a6af7fc0d3d9608190a39155be1d3073b038c48e (diff) |
notmuch: don't remove tags from tag_index
When removing a tag, we shouldn't also remove it from the tag index.
Diffstat (limited to 'melib/src')
-rw-r--r-- | melib/src/backends/notmuch.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/melib/src/backends/notmuch.rs b/melib/src/backends/notmuch.rs index 9023c23e..e3cd9d4d 100644 --- a/melib/src/backends/notmuch.rs +++ b/melib/src/backends/notmuch.rs @@ -792,8 +792,6 @@ impl BackendOp for NotmuchOp { let hash = tag_hash!(tag); if value { self.tag_index.write().unwrap().insert(hash, tag); - } else { - self.tag_index.write().unwrap().remove(&hash); } if !envelope.labels().iter().any(|&h_| h_ == hash) { if value { |