Add post priority to incoming and outgoing webhook (#26671)

* Added priority to incoming and outgoing webhook

* fixed fat finger

* Added priority tests

* fixed golint

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Colton Shaw
2024-04-17 07:32:32 -04:00
коммит произвёл GitHub
родитель 9abdc7a933
Коммит 072d9a9c19
6 изменённых файлов: 79 добавлений и 18 удалений

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

@@ -56,6 +56,7 @@ type IncomingWebhookRequest struct {
Attachments []*SlackAttachment `json:"attachments"`
Type string `json:"type"`
IconEmoji string `json:"icon_emoji"`
Priority *PostPriority `json:"priority"`
}
func (o *IncomingWebhook) IsValid() *AppError {