Browse Source

hotfix phone pairing incorect client display name format

pull/61/head v1.6.3
Dimas Restu H 2 years ago
parent
commit
403777b29c
  1. 8
      pkg/whatsapp/whatsapp.go

8
pkg/whatsapp/whatsapp.go

@ -149,10 +149,10 @@ func WhatsAppGetUserOS() string {
switch runtime.GOOS {
case "windows":
return "Windows"
case "linux":
return "Linux"
case "darwin":
return "macOS"
default:
return "Mac OS"
return "Linux"
}
}
@ -231,7 +231,7 @@ func WhatsAppLoginPair(jid string) (string, int, error) {
}
// Request Pairing Code
code, err := WhatsAppClient[jid].PairPhone(jid, true, whatsmeow.PairClientChrome, "Google Chrome ("+WhatsAppGetUserOS()+")")
code, err := WhatsAppClient[jid].PairPhone(jid, true, whatsmeow.PairClientChrome, "Chrome ("+WhatsAppGetUserOS()+")")
if err != nil {
return "", 0, err
}

Loading…
Cancel
Save