Skip to content

Commit 1295ce2

Browse files
authored
decrypt: just ack unavailable messages instead of sending retry receipt (#618)
1 parent bcbc6be commit 1295ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

message.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (cli *Client) handlePlaintextMessage(info *types.MessageInfo, node *waBinar
175175
func (cli *Client) decryptMessages(info *types.MessageInfo, node *waBinary.Node) {
176176
if len(node.GetChildrenByTag("unavailable")) > 0 && len(node.GetChildrenByTag("enc")) == 0 {
177177
cli.Log.Warnf("Unavailable message %s from %s", info.ID, info.SourceString())
178-
go cli.sendRetryReceipt(node, info, true)
178+
go cli.sendAck(node)
179179
cli.dispatchEvent(&events.UndecryptableMessage{Info: *info, IsUnavailable: true})
180180
return
181181
}

0 commit comments

Comments
 (0)