Skip to content

Commit

Permalink
wbotMessageListener: avoid NPE when detecting invisible mark
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Aug 25, 2024
1 parent 7c627a3 commit 234b6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/services/WbotServices/wbotMessageListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ const handleMessage = async (
const unpackedMessage = getUnpackedMessage(msg);
const messageMedia = getMessageMedia(unpackedMessage);
if (msg.key.fromMe) {
if (bodyMessage.startsWith("\u200e")) return;
if (bodyMessage?.startsWith("\u200e")) return;

if (
!messageMedia &&
Expand Down

0 comments on commit 234b6bb

Please sign in to comment.