Mention chat not show in group #676
Replies: 3 comments
-
Use discussion tab for protocol question. |
Beta Was this translation helpful? Give feedback.
-
I have been tested your code and working as expected. |
Beta Was this translation helpful? Give feedback.
-
There is the possibility of making this type of message, it shows that it was mentioned but does not include numbers in the message. |
Beta Was this translation helpful? Give feedback.
-
i have implement mention chat group like this
pattern :=
@62\d{9,12}`re := regexp.MustCompile(pattern)
matches := re.FindAllString(msg.Body, -1)
if matches != nil {
var mentionedJID []string
for _, match := range matches {
mentionedJID = append(mentionedJID, types.NewJID(strings.Replace(match, "@", "", 1), types.DefaultUserServer).ToNonAD().String())
}
no error in log but chat isnt show in group conversation
Beta Was this translation helpful? Give feedback.
All reactions