From 51265d546409de12483531773fc1fbc73453ae6e Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 16 Apr 2016 20:39:43 +0200 Subject: Sync with mattermost 2.2.0 release --- .../github.com/mattermost/platform/model/outgoing_webhook.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'vendor/github.com/mattermost/platform/model/outgoing_webhook.go') diff --git a/vendor/github.com/mattermost/platform/model/outgoing_webhook.go b/vendor/github.com/mattermost/platform/model/outgoing_webhook.go index e13de908..70de4d26 100644 --- a/vendor/github.com/mattermost/platform/model/outgoing_webhook.go +++ b/vendor/github.com/mattermost/platform/model/outgoing_webhook.go @@ -20,8 +20,6 @@ type OutgoingWebhook struct { TeamId string `json:"team_id"` TriggerWords StringArray `json:"trigger_words"` CallbackURLs StringArray `json:"callback_urls"` - DisplayName string `json:"display_name"` - Description string `json:"description"` } func (o *OutgoingWebhook) ToJson() string { @@ -108,14 +106,6 @@ func (o *OutgoingWebhook) IsValid() *AppError { } } - if len(o.DisplayName) > 64 { - return NewLocAppError("OutgoingWebhook.IsValid", "model.outgoing_hook.is_valid.display_name.app_error", nil, "") - } - - if len(o.Description) > 128 { - return NewLocAppError("OutgoingWebhook.IsValid", "model.outgoing_hook.is_valid.description.app_error", nil, "") - } - return nil } -- cgit v1.2.3