From ead63ad4462b747eddcf311e4929eacbbd3e636f Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 27 May 2024 06:39:45 +0200 Subject: [PATCH] fix: check bot source and sink relays --- src/server/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/context.rs b/src/server/context.rs index 1c04cf1..1db4b34 100644 --- a/src/server/context.rs +++ b/src/server/context.rs @@ -301,6 +301,6 @@ impl Context { } pub fn is_relay(&self, id: &str) -> bool { - self.0.relays.contains(id) + self.0.relay.sources.contains(id) || self.0.relay.sinks.contains(id) } }