Skip to content

Commit

Permalink
Merge branch 'shay/unbounded_redactions' of https://github.com/matrix…
Browse files Browse the repository at this point in the history
…-org/mjolnir into shay/unbounded_redactions
  • Loading branch information
H-Shay committed Oct 22, 2024
2 parents 6892a77 + 9091b01 commit a306517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ async function botRedactUserMessagesIn(
* @param isGlob - whether the targetID is a glob
*/
function matchUserId(userId: string, targetId: string, isGlob: boolean): boolean {
const matcher = new MatrixGlob(targetId);
if (isGlob) {
const matcher = new MatrixGlob(targetId);
return matcher.test(userId);
} else {
return userId === targetId;
Expand Down

0 comments on commit a306517

Please sign in to comment.