mirror of
https://github.com/paymog/slack-cli.git
synced 2026-09-18 23:43:49 +08:00
Merge pull request #265 from tmastny/tim/add-permalink-and-channel-id
Include channel ID and permalink in search results
This commit is contained in:
@@ -52,6 +52,7 @@ type Message struct {
|
||||
ThreadTs string `json:"ThreadTs"`
|
||||
Text string `json:"text"`
|
||||
Time string `json:"time"`
|
||||
Permalink string `json:"permalink,omitempty"`
|
||||
Reactions string `json:"reactions,omitempty"`
|
||||
BotName string `json:"botName,omitempty"`
|
||||
FileCount int `json:"fileCount,omitempty"`
|
||||
@@ -1571,9 +1572,10 @@ func (ch *ConversationsHandler) convertMessagesFromSearch(slackMessages []slack.
|
||||
UserName: userName,
|
||||
RealName: realName,
|
||||
Text: text.ProcessText(msgText),
|
||||
Channel: fmt.Sprintf("#%s", msg.Channel.Name),
|
||||
Channel: fmt.Sprintf("%s (#%s)", msg.Channel.ID, msg.Channel.Name),
|
||||
ThreadTs: threadTs,
|
||||
Time: timestamp,
|
||||
Permalink: msg.Permalink,
|
||||
Reactions: "",
|
||||
HasMedia: hasMedia,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user