Skip to content

Commit 09e1f9c

Browse files
committed
fix: bounced message condition
1 parent d78a74e commit 09e1f9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package/src/utils/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ export const isBlockedMessage = (message: LocalMessage) => {
8787
* @returns boolean
8888
*/
8989
export const isBouncedMessage = (message: LocalMessage) =>
90-
(message.type === 'error' &&
91-
message?.moderation_details?.action === 'MESSAGE_RESPONSE_ACTION_BOUNCE') ||
92-
message?.moderation?.action === 'bounce';
90+
message.type === 'error' &&
91+
(message?.moderation_details?.action === 'MESSAGE_RESPONSE_ACTION_BOUNCE' ||
92+
message?.moderation?.action === 'bounce');
9393

9494
/**
9595
* Utility to check if the message is a edited message.

0 commit comments

Comments
 (0)