PLT-7824 Added support for mentions with <@userid> and <!here> (#7615) (#7737)

Этот коммит содержится в:
Joey Lee
2017-11-18 03:17:59 +11:00
коммит произвёл Harrison Healey
родитель 065d8e9731
Коммит 3836f99920
9 изменённых файлов: 170 добавлений и 123 удалений

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

@@ -537,6 +537,9 @@ func (a *App) HandleIncomingWebhook(hookId string, req *model.IncomingWebhookReq
channelName := req.ChannelName
webhookType := req.Type
text = a.ProcessSlackText(text)
req.Attachments = a.ProcessSlackAttachments(req.Attachments)
// attachments is in here for slack compatibility
if len(req.Attachments) > 0 {
if len(req.Props) == 0 {