[PLT-840] Add option to outgoing webhooks to reply to the posted message as a comment (#7807)

Этот коммит содержится в:
Carlos Tadeu Panato Junior
2017-11-21 00:57:35 +01:00
коммит произвёл Christopher Speller
родитель e2b165cf3e
Коммит fdba2d50fd
4 изменённых файлов: 72 добавлений и 23 удалений

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

@@ -38,7 +38,7 @@ func TestCreateWebhookPost(t *testing.T) {
Text: "text",
},
},
}, model.POST_SLACK_ATTACHMENT)
}, model.POST_SLACK_ATTACHMENT, "")
if err != nil {
t.Fatal(err.Error())
}
@@ -49,7 +49,7 @@ func TestCreateWebhookPost(t *testing.T) {
}
}
_, err = th.App.CreateWebhookPost(hook.UserId, th.BasicChannel, "foo", "user", "http://iconurl", nil, model.POST_SYSTEM_GENERIC)
_, err = th.App.CreateWebhookPost(hook.UserId, th.BasicChannel, "foo", "user", "http://iconurl", nil, model.POST_SYSTEM_GENERIC, "")
if err == nil {
t.Fatal("should have failed - bad post type")
}