Skip to content

Commit

Permalink
fix: Fixed return value for the isNewMsg attribute (close wppconnect-…
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Sep 2, 2023
1 parent 8165a2a commit 7397568
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chat/functions/getMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export async function getMessages(
}

msgs = msgs.map((m: any) => {
if (options?.onlyUnread) m.isNewMsg = true;
if (m instanceof MsgModel) {
return m;
}
Expand Down

0 comments on commit 7397568

Please sign in to comment.