Skip to content

Commit 947866b

Browse files
committed
connect: store own lid-pn mapping unconditionally
1 parent eea582e commit 947866b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

connectionevents.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,10 @@ func (cli *Client) handleConnectSuccess(node *waBinary.Node) {
165165
} else {
166166
cli.Log.Infof("Updated LID to %s", cli.Store.LID)
167167
}
168-
cli.StoreLIDPNMapping(ctx, cli.Store.GetLID(), cli.Store.GetJID())
169168
}
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())
170172
go func() {
171173
if dbCount, err := cli.Store.PreKeys.UploadedPreKeyCount(ctx); err != nil {
172174
cli.Log.Errorf("Failed to get number of prekeys in database: %v", err)

0 commit comments

Comments
 (0)