Skip to content

Commit

Permalink
fix ephemeral view once message (#1307)
Browse files Browse the repository at this point in the history
* fix ephemeral view once message

* fix ephemeral view once message
  • Loading branch information
kaatt authored Mar 2, 2022
1 parent a8a0c70 commit 7f495cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Utils/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ export const extractMessageContent = (content: WAMessageContent | undefined | nu
}
}

content = content?.ephemeralMessage?.message ||
content = content?.ephemeralMessage?.message?.viewOnceMessage?.message ||
content?.ephemeralMessage?.message ||
content?.viewOnceMessage?.message ||
content ||
undefined
Expand Down

0 comments on commit 7f495cf

Please sign in to comment.