From 14bb965439fb648a5dfa273d3414bcc0c42d99fb Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 30 May 2024 16:12:34 +0200 Subject: [PATCH] fix: don't repeat join event --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 62b6330..07a6997 100644 --- a/src/main.rs +++ b/src/main.rs @@ -125,6 +125,7 @@ async fn handle_ntfy(target: String, mut sub: broadcast::Receiver { + if users.contains_key(&user.session) { continue } users.insert(user.session, user.name.clone()); client .post(&target)