Skip to content

Commit

Permalink
client: don't return pn sending error in ConnectBackground
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 28, 2025
1 parent 533f3a4 commit e1faf0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/connector/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ func (wa *WhatsAppClient) ConnectBackground(ctx context.Context, params *bridgev
if err == nil {
pn := gjson.GetBytes(params.RawData, "data.pn").Str
if pn != "" {
err = wa.sendPNData(ctx, pn)
if err != nil {
zerolog.Ctx(ctx).Err(err).Msg("Failed to send PN data")
pnErr := wa.sendPNData(ctx, pn)
if pnErr != nil {
zerolog.Ctx(ctx).Err(pnErr).Msg("Failed to send PN data")
}
}
}
Expand Down

0 comments on commit e1faf0f

Please sign in to comment.