summaryrefslogtreecommitdiffstats
path: root/src/components/chats_list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/chats_list.rs')
-rw-r--r--src/components/chats_list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/chats_list.rs b/src/components/chats_list.rs
index b8cf34c..d520f56 100644
--- a/src/components/chats_list.rs
+++ b/src/components/chats_list.rs
@@ -73,7 +73,7 @@ pub fn ChatsList() -> impl IntoView {
debug!("set the new message");
});
on_cleanup(move || {
- if let Some(sub_id) = sub_id.get() {
+ if let Some(sub_id) = sub_id.get_untracked() {
new_messages_signal.write().unsubscribe_all(sub_id);
}
});