Skip to content

Commit

Permalink
Use safe method for getting own ID in message requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 16, 2023
1 parent 1bdbbb5 commit 58beaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (cli *Client) delayedRequestMessageFromPhone(info *types.MessageInfo) {
}
_, err := cli.SendMessage(
ctx,
cli.Store.ID.ToNonAD(),
cli.getOwnID(),
cli.BuildUnavailableMessageRequest(info.Chat, info.Sender, info.ID),
SendRequestExtra{Peer: true},
)
Expand Down

0 comments on commit 58beaf3

Please sign in to comment.