summaryrefslogtreecommitdiffstats
path: root/vendor/go.mau.fi/whatsmeow/appstate.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/appstate.go')
-rw-r--r--vendor/go.mau.fi/whatsmeow/appstate.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/appstate.go b/vendor/go.mau.fi/whatsmeow/appstate.go
index f1130462..7e99b513 100644
--- a/vendor/go.mau.fi/whatsmeow/appstate.go
+++ b/vendor/go.mau.fi/whatsmeow/appstate.go
@@ -270,11 +270,12 @@ func (cli *Client) requestAppStateKeys(ctx context.Context, rawKeyIDs [][]byte)
},
},
}
- if cli.Store.ID == nil {
+ ownID := cli.getOwnID().ToNonAD()
+ if ownID.IsEmpty() {
return
}
cli.Log.Infof("Sending key request for app state keys %+v", debugKeyIDs)
- _, err := cli.SendMessage(ctx, cli.Store.ID.ToNonAD(), "", msg)
+ _, err := cli.SendMessage(ctx, ownID, msg, SendRequestExtra{Peer: true})
if err != nil {
cli.Log.Warnf("Failed to send app state key request: %v", err)
}