summaryrefslogtreecommitdiffstats
path: root/src/components/chat_header.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/chat_header.rs')
-rw-r--r--src/components/chat_header.rs7
1 files changed, 6 insertions, 1 deletions
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! {
<div class="chat-view-header panel">
- <AvatarWithPresence user=chat.user.get().into() />
+ {move || {
+ let user = chat.user.get().into();
+ view! {
+ <AvatarWithPresence user />
+ }
+ }}
<div class="user-info">
<h2 class="name">{name}</h2>
<h3>{jid}</h3>