You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ca92ffe
Browse filesBrowse the repository at this point in the historyBrowse files
feat(communities): add Leave community to the rail menu
Leaving a saved community now confirms in an alert dialog, publishes a
signed NIP-43 leave request (kind 28936) to that community's relay by
origin, and only then forgets it on this device: the membership is
dropped, a left selection falls back to Personal space, the retained
session is disposed, and the origin+viewer partitions of view state,
channel heads, read state, outbox, quick reactions and channel setups
are purged. A relay answering that the viewer is not a member counts as
already absent and removes the community with an informational toast;
any other refusal or an unreachable relay keeps the membership with an
error toast so the item can be tried again.
The development broker gains a scoped `leave` route, the native adapter
a matching `leave` request, and the Rust signer allowlists only the
empty protected shape of kind 28936. Opening the menu or leaving never
acquires an inactive community's session.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Matt Toohey <[email protected]>
let listener = TcpListener::bind("127.0.0.1:0").unwrap();
57
92
let url = Url::parse(&format!("http://{}/query", listener.local_addr().unwrap())).unwrap();
0 commit comments