Skip to content

Commit

Permalink
add condition
Browse files Browse the repository at this point in the history
  • Loading branch information
woohm402 committed Jan 27, 2025
1 parent dbbb910 commit 4404638
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/services/SlackEventService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@ export const implementSlackEventService = ({
}));
break;
case 'message': {
if (!('user' in event && typeof event.user === 'string')) {
console.debug('message', JSON.stringify(event));
if (
!(
'user' in event &&
typeof event.user === 'string' &&
event.subtype === undefined
)
) {
console.debug('skip message', JSON.stringify(event));
return;
}

Expand Down

0 comments on commit 4404638

Please sign in to comment.