From 09cb54ce24f6b9888038fc9b4ca7c2ca195d8078 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Thu, 24 Oct 2024 15:49:52 +0100 Subject: [PATCH] fix: check user leaving is actually us closes #105 fixes #96 closes https://github.com/revoltchat/frontend/issues/312 --- src/events/v1.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/v1.ts b/src/events/v1.ts index 59463631..028f3068 100644 --- a/src/events/v1.ts +++ b/src/events/v1.ts @@ -670,7 +670,7 @@ export async function handleEvent( break; } case "ServerMemberLeave": { - if (event.user) { + if (event.user && event.user === client.user!.id) { handleEvent( client, {