Skip to content

Commit

Permalink
feat(favorites): Dont show typing indicator in slimbar if chat in sid…
Browse files Browse the repository at this point in the history
…ebar (#1454)

Co-authored-by: Flemmli97 <Flemmli97@users.noreply.github.com>
Co-authored-by: Phill Wisniewski <93608357+phillsatellite@users.noreply.github.com>
Co-authored-by: Darius Clark <dariusc93@users.noreply.github.com>
  • Loading branch information
4 people authored Nov 8, 2023
1 parent 972635e commit 5764da7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/layouts/slimbar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ pub fn SlimbarLayout(cx: Scope<Props>) -> Element {
id: "favorites",
aria_label: "Favorites",
favorites.iter().cloned().map(|chat| {
let users_typing = chat.typing_indicator.iter().any(|(k, _)| *k != state.read().did_key());
let users_typing = chat.typing_indicator.iter().any(|(k, _)| *k != state.read().did_key())
&& !state.read().chats_sidebar().contains(&chat);
let favorites_chat = chat.clone();
let remove_favorite = chat.clone();
let chat_id = chat.id;
Expand Down

0 comments on commit 5764da7

Please sign in to comment.