Lint fixes and testing workflow actions
This commit is contained in:
@@ -340,15 +340,3 @@ func jidToPhoneNumber(jid types.JID) string {
|
||||
|
||||
return phone
|
||||
}
|
||||
|
||||
// phoneNumberToJID converts an E.164 phone number to WhatsApp JID
|
||||
func phoneNumberToJID(phoneNumber string) types.JID {
|
||||
// Remove + if present
|
||||
phone := strings.TrimPrefix(phoneNumber, "+")
|
||||
|
||||
// Create JID
|
||||
return types.JID{
|
||||
User: phone,
|
||||
Server: types.DefaultUserServer, // "s.whatsapp.net"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user