diff options
author | Wim <wim@42.be> | 2023-08-05 20:43:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-05 20:43:19 +0200 |
commit | 56e7bd01ca09ad52b0c4f48f146a20a4f1b78696 (patch) | |
tree | b1355645342667209263cbd355dc0b4254f1e8fe /vendor/go.mau.fi/whatsmeow/receipt.go | |
parent | 9459495484d6e06a3d46de64fccd8d06f7ccc72c (diff) | |
download | matterbridge-msglm-master.tar.gz matterbridge-msglm-master.tar.bz2 matterbridge-msglm-master.zip |
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/receipt.go')
-rw-r--r-- | vendor/go.mau.fi/whatsmeow/receipt.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/receipt.go b/vendor/go.mau.fi/whatsmeow/receipt.go index 7e02c0af..8a958c8c 100644 --- a/vendor/go.mau.fi/whatsmeow/receipt.go +++ b/vendor/go.mau.fi/whatsmeow/receipt.go @@ -124,6 +124,9 @@ func (cli *Client) sendAck(node *waBinary.Node) { // // The first JID parameter (chat) must always be set to the chat ID (user ID in DMs and group ID in group chats). // The second JID parameter (sender) must be set in group chats and must be the user ID who sent the message. +// +// You can mark multiple messages as read at the same time, but only if the messages were sent by the same user. +// To mark messages by different users as read, you must call MarkRead multiple times (once for each user). func (cli *Client) MarkRead(ids []types.MessageID, timestamp time.Time, chat, sender types.JID) error { node := waBinary.Node{ Tag: "receipt", |