summaryrefslogtreecommitdiffstats
path: root/matterclient
diff options
context:
space:
mode:
Diffstat (limited to 'matterclient')
-rw-r--r--matterclient/matterclient.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index beae8070..d2bfbae7 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -34,6 +34,7 @@ type Message struct {
Channel string
Username string
Text string
+ Type string
}
type Team struct {
@@ -266,6 +267,7 @@ func (m *MMClient) parseActionPost(rmsg *Message) {
}
rmsg.Username = m.GetUser(data.UserId).Username
rmsg.Channel = m.GetChannelName(data.ChannelId)
+ rmsg.Type = data.Type
rmsg.Team = m.GetTeamName(rmsg.Raw.Data["team_id"].(string))
// direct message
if rmsg.Raw.Data["channel_type"] == "D" {