Skip to content

Commit

Permalink
hotfix phone pairing incorect client display name format
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaskiddo committed Nov 11, 2023
1 parent 080a8a2 commit 403777b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/whatsapp/whatsapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 403777b

Please sign in to comment.