Skip to content

Commit

Permalink
fix: throw when without participants
Browse files Browse the repository at this point in the history
  • Loading branch information
Ctrl-Mota committed Jul 31, 2024
1 parent 538c974 commit 308396e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/handlers/group-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function groupMetadataHandler(sessionId: string, event: BaileysEv
}
break;
case "remove":
metadata.participants = metadata.participants.filter((p) => !participants.includes(p.id));
metadata.participants = metadata.participants?.filter((p) => !participants.includes(p.id));
break;
}

Expand Down

0 comments on commit 308396e

Please sign in to comment.