Skip to content

Commit

Permalink
feat: Added client.markPlayed function (fix #706)
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Aug 15, 2022
1 parent 756775e commit 72a70f3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/api/layers/sender.layer.ts
Expand Up @@ -1051,6 +1051,19 @@ export class SenderLayer extends ListenerLayer {
);
}

/**
* Sets a audio or image view once. Marks message as played
* @category Chat
* @param msgId Message id: xxxxx@us.c
*/
public async markPlayed(msgId: string) {
return evaluateAndReturn(
this.page,
(msgId) => WPP.chat.markPlayed(msgId),
msgId
);
}

/**
* Starts typing ('Typing...' state)
*
Expand Down

0 comments on commit 72a70f3

Please sign in to comment.