From 7adfa5c8f746cb8714c718d88852ba332a0edc45 Mon Sep 17 00:00:00 2001 From: Dimas Restu H Date: Mon, 18 Mar 2024 17:50:35 +0700 Subject: [PATCH] update fix return nil error when checking registered id --- pkg/whatsapp/whatsapp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/whatsapp/whatsapp.go b/pkg/whatsapp/whatsapp.go index b0270f3..f50f1c4 100644 --- a/pkg/whatsapp/whatsapp.go +++ b/pkg/whatsapp/whatsapp.go @@ -447,6 +447,8 @@ func WhatsAppCheckRegistered(jid string, id string) error { if remoteJID.IsEmpty() || remoteJID.Server == types.GroupServer { return errors.New("WhatsApp Personal ID is Not Registered") } + + return nil } // Return Error WhatsApp Client is not Valid