mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-27 05:37:15 -05:00
MM-67868: Remove deprecated Slack compatibility type aliases (#37163)
Remove the deprecated backward-compatibility aliases introduced in #35445: SlackAttachment, SlackAttachmentField, ParseSlackAttachment, and StringifySlackFieldValue. Plugins should now use the MessageAttachment equivalents directly. SlackCompatibleBool is retained as it is still actively used. Claude-Session: https://claude.ai/code/session_01KnMUsaSbm4HQsNEEtH5zp8 Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
co-authored by
Claude
Mattermost Build
parent
ea183fab48
commit
2b40a0bdae
@@ -8,22 +8,6 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Deprecated: Use MessageAttachment instead.
|
||||
type SlackAttachment = MessageAttachment
|
||||
|
||||
// Deprecated: Use MessageAttachmentField instead.
|
||||
type SlackAttachmentField = MessageAttachmentField
|
||||
|
||||
// Deprecated: Use ParseMessageAttachment instead.
|
||||
func ParseSlackAttachment(post *Post, attachments []*MessageAttachment) {
|
||||
ParseMessageAttachment(post, attachments)
|
||||
}
|
||||
|
||||
// Deprecated: Use StringifyMessageAttachmentFieldValue instead.
|
||||
func StringifySlackFieldValue(a []*MessageAttachment) []*MessageAttachment {
|
||||
return StringifyMessageAttachmentFieldValue(a)
|
||||
}
|
||||
|
||||
// SlackCompatibleBool is an alias for bool that implements json.Unmarshaler
|
||||
type SlackCompatibleBool bool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user