diff --git a/crates/workspace/src/sidebar/mod.rs b/crates/workspace/src/sidebar/mod.rs index 46add454..08280709 100644 --- a/crates/workspace/src/sidebar/mod.rs +++ b/crates/workspace/src/sidebar/mod.rs @@ -13,7 +13,7 @@ use gpui::{ use instant::Duration; use nip29::{Group, GroupKey, GroupsEvent, GroupsRegistry}; use nostr_sdk::prelude::*; -use person::Directory; +use person::{Directory, PersonRegistry}; use smallvec::{SmallVec, smallvec}; use state::{FIND_DELAY, NostrRegistry, StateEvent}; use theme::{ActiveTheme, TABBAR_HEIGHT, TextStyle, Typeset as _}; @@ -103,6 +103,7 @@ impl Sidebar { let chat = ChatRegistry::global(cx); let groups = GroupsRegistry::global(cx); let nostr = NostrRegistry::global(cx); + let wot = PersonRegistry::global(cx).read(cx).wot(); let find_input = cx.new(|cx| { InputState::new(window, cx) @@ -121,6 +122,12 @@ impl Sidebar { }), ); + subscriptions.push( + cx.subscribe_in(&wot, window, |_this, _wot, _event, _window, cx| { + cx.notify(); + }), + ); + subscriptions.push( cx.subscribe_in(&groups, window, |_this, _, event, window, cx| { match event {