From 5764da78f08cdf5f50c3bdb7b4911dec26bc699c Mon Sep 17 00:00:00 2001 From: Flemmli97 <34157027+Flemmli97@users.noreply.github.com> Date: Wed, 8 Nov 2023 20:06:36 +0100 Subject: [PATCH] feat(favorites): Dont show typing indicator in slimbar if chat in sidebar (#1454) Co-authored-by: Flemmli97 Co-authored-by: Phill Wisniewski <93608357+phillsatellite@users.noreply.github.com> Co-authored-by: Darius Clark --- ui/src/layouts/slimbar.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/layouts/slimbar.rs b/ui/src/layouts/slimbar.rs index 51bd972fa77..8a715723360 100644 --- a/ui/src/layouts/slimbar.rs +++ b/ui/src/layouts/slimbar.rs @@ -47,7 +47,8 @@ pub fn SlimbarLayout(cx: Scope) -> 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;