mirror of
https://github.com/mautrix/whatsapp.git
synced 2025-03-14 14:15:38 +00:00
client: don't return pn sending error in ConnectBackground
This commit is contained in:
parent
533f3a4e87
commit
e1faf0f34a
1 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue