From 4a5aa6579f5184c443ffbe80ce93e0daa0926826 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Mon, 2 Jun 2025 21:16:18 +0100 Subject: fix: put reactive calls in reactive contexts to update avatar on avatar update --- src/components/chat_header.rs | 7 ++++- src/components/chats_list/chats_list_item.rs | 7 ++++- src/components/message.rs | 19 ++++++------- src/components/message_history_buffer.rs | 39 ++++++++++---------------- src/components/roster_list/roster_list_item.rs | 24 ++++++++-------- src/state_store.rs | 6 +++- src/views/macaw.rs | 5 ++-- src/views/macaw/open_chats_panel.rs | 9 ++++-- 8 files changed, 61 insertions(+), 55 deletions(-) (limited to 'src') diff --git a/src/components/chat_header.rs b/src/components/chat_header.rs index ab33d2b..51906aa 100644 --- a/src/components/chat_header.rs +++ b/src/components/chat_header.rs @@ -11,7 +11,12 @@ pub fn ChatViewHeader(chat: MacawChat) -> impl IntoView { view! {
- + {move || { + let user = chat.user.get().into(); + view! { + + } + }}