From 4bb658f4f508e9ea1fc3a403d2d77cf22b64920d Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Tue, 20 Oct 2026 14:54:12 +0700 Subject: [PATCH] update --- crates/workspace/src/sidebar/mod.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 {