fix: don't repeat join event

This commit is contained in:
əlemi 2024-05-30 16:12:34 +02:00
parent df185e2517
commit 14bb965439
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -125,6 +125,7 @@ async fn handle_ntfy(target: String, mut sub: broadcast::Receiver<session::Sessi
while let Ok(event) = sub.recv().await {
if let Err(e) = match event {
session::SessionEvent::AddUser(user) => {
if users.contains_key(&user.session) { continue }
users.insert(user.session, user.name.clone());
client
.post(&target)