Skip to content

Commit fd4e4c2

Browse files
committed
send: don't use LID for peer messages
1 parent edc4efe commit fd4e4c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

send.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ func (cli *Client) SendMessage(ctx context.Context, to types.JID, message *waE2E
322322
resp.DebugTimings.GetParticipants = time.Since(start)
323323
} else if to.Server == types.HiddenUserServer {
324324
ownID = cli.getOwnLID()
325-
} else if to.Server == types.DefaultUserServer && cli.Store.LIDMigrationTimestamp > 0 {
325+
} else if to.Server == types.DefaultUserServer && cli.Store.LIDMigrationTimestamp > 0 && !req.Peer {
326326
start := time.Now()
327327
var toLID types.JID
328328
toLID, err = cli.Store.LIDs.GetLIDForPN(ctx, to)

0 commit comments

Comments
 (0)