Skip to content

Commit

Permalink
fix: check user leaving is actually us
Browse files Browse the repository at this point in the history
closes #105
fixes #96
closes revoltchat/frontend#312
  • Loading branch information
insertish committed Oct 24, 2024
1 parent 0a296d8 commit 09cb54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ export async function handleEvent(
break;
}
case "ServerMemberLeave": {
if (event.user) {
if (event.user && event.user === client.user!.id) {
handleEvent(
client,
{
Expand Down

0 comments on commit 09cb54c

Please sign in to comment.