We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eea582e commit 947866bCopy full SHA for 947866b
1 file changed
connectionevents.go
@@ -165,8 +165,10 @@ func (cli *Client) handleConnectSuccess(node *waBinary.Node) {
165
} else {
166
cli.Log.Infof("Updated LID to %s", cli.Store.LID)
167
}
168
- cli.StoreLIDPNMapping(ctx, cli.Store.GetLID(), cli.Store.GetJID())
169
+ // Some users are missing their own LID-PN mapping even though it's already in the device table,
170
+ // so do this unconditionally for a few months to ensure everyone gets the row.
171
+ cli.StoreLIDPNMapping(ctx, cli.Store.GetLID(), cli.Store.GetJID())
172
go func() {
173
if dbCount, err := cli.Store.PreKeys.UploadedPreKeyCount(ctx); err != nil {
174
cli.Log.Errorf("Failed to get number of prekeys in database: %v", err)
0 commit comments