Browse Source

CompactListing: update self.rows{,_drawn} on row update

self.rows{,_drawn} were left unupdated, and stale envelope hashes could
result in panics
master
Manos Pitsidianakis 2 years ago
parent
commit
08d8c05a67
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 2
      src/components/mail/listing/compact.rs

2
src/components/mail/listing/compact.rs

@ -1109,6 +1109,8 @@ impl CompactListing {
}
(false, false) => {}
}
*self.rows.get_mut(idx).unwrap() = ((idx, (thread_hash, env_hash)), strings);
self.rows_drawn.update(idx, 1);
}
}

Loading…
Cancel
Save