PLT-4492 Mentions with a comma after them don't trigger notification jewel (#4451)

* PLT-4492 Mentions with a comma after them don't trigger notification jewel

* Fix mentions for usernames with dots
Этот коммит содержится в:
enahum
2016-11-04 16:15:17 -03:00
коммит произвёл Christopher Speller
родитель b37eb09c37
Коммит 205ccd1bd4

Просмотреть файл

@@ -503,9 +503,6 @@ func getExplicitMentions(message string, keywords map[string][]string) (map[stri
if ids, match := keywords[word]; match {
addMentionedUsers(ids)
isMention = true
} else if _, ok := systemMentions[word]; !ok && strings.HasPrefix(word, "@") {
potentialOthersMentioned = append(potentialOthersMentioned, word[1:])
continue
}
if !isMention {