Browse Source

update fix return nil error when checking registered id

pull/61/head v1.7.0
Dimas Restu H 2 years ago
parent
commit
7adfa5c8f7
  1. 2
      pkg/whatsapp/whatsapp.go

2
pkg/whatsapp/whatsapp.go

@ -447,6 +447,8 @@ func WhatsAppCheckRegistered(jid string, id string) error {
if remoteJID.IsEmpty() || remoteJID.Server == types.GroupServer { if remoteJID.IsEmpty() || remoteJID.Server == types.GroupServer {
return errors.New("WhatsApp Personal ID is Not Registered") return errors.New("WhatsApp Personal ID is Not Registered")
} }
return nil
} }
// Return Error WhatsApp Client is not Valid // Return Error WhatsApp Client is not Valid

Loading…
Cancel
Save