Fix positioning on face piles, fix panic on member invite removal

This commit is contained in:
Mikayla 2023-08-08 10:44:44 -07:00
parent 17c9b4ca96
commit 6a7245b92b
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View file

@ -534,7 +534,7 @@ impl ChannelModalDelegate {
this.selected_index = this
.selected_index
.min(this.matching_member_indices.len() - 1);
.min(this.matching_member_indices.len().saturating_sub(1));
cx.focus_self();
cx.notify();