mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Added the list_topics and list_nodes role flags, Filtered the nodes listed by the roles
- `list_topics` / `list_nodes`: listing answers every topic, every node with messages, without reading any (`query` gives both). - Without them, listing nodes only answers those with messages in the topics the roles may read (every node until now). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -413,9 +413,10 @@ impl Client {
|
||||
}
|
||||
}
|
||||
|
||||
/// The topics with messages that this client may push to or read
|
||||
/// (every one if it may query), or every node with messages.
|
||||
/// `truncated` if some didn't fit.
|
||||
/// The topics with messages that this client may push to or read, or
|
||||
/// the nodes with messages in the topics it may read; every one if its
|
||||
/// roles have `list_topics` / `list_nodes`, or `query`. `truncated` if
|
||||
/// some didn't fit.
|
||||
pub fn list_names(&mut self, kind: NameKind) -> Result<NamesList> {
|
||||
match self.request(ListNames { kind }.into())? {
|
||||
Packet::NamesList(names) => Ok(names),
|
||||
|
||||
Reference in New Issue
Block a user