Browse Source

update fix message react validation

pull/61/head v1.7.2
Dimas Restu H 2 years ago
parent
commit
a0413a375a
  1. 2
      pkg/whatsapp/whatsapp.go

2
pkg/whatsapp/whatsapp.go

@ -1193,7 +1193,7 @@ func WhatsAppMessageReact(ctx context.Context, jid string, rjid string, msgid st
}()
// Check Emoji Must Be Contain Only 1 Emoji Character
if !gomoji.ContainsEmoji(emoji) && uniseg.GraphemeClusterCount(emoji) == 1 {
if !gomoji.ContainsEmoji(emoji) && uniseg.GraphemeClusterCount(emoji) != 1 {
return "", errors.New("WhatsApp Message React Emoji Must Be Contain Only 1 Emoji Character")
}

Loading…
Cancel
Save