diff options
author | Patrick Connolly <patrick.c.connolly@gmail.com> | 2019-01-09 15:50:03 -0500 |
---|---|---|
committer | Wim <wim@42.be> | 2019-01-09 21:50:03 +0100 |
commit | b33b50987b89676a5fb71476639d488e051315d8 (patch) | |
tree | 44e57e49a9fc7d37b4ca99e8b889e1db041725bc /bridge/mattermost/handlers.go | |
parent | 5193634a5210857e1fe49fc1c2d4297912794935 (diff) | |
download | matterbridge-msglm-b33b50987b89676a5fb71476639d488e051315d8.tar.gz matterbridge-msglm-b33b50987b89676a5fb71476639d488e051315d8.tar.bz2 matterbridge-msglm-b33b50987b89676a5fb71476639d488e051315d8.zip |
Add support for mattermost threading (#627)
Diffstat (limited to 'bridge/mattermost/handlers.go')
-rw-r--r-- | bridge/mattermost/handlers.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bridge/mattermost/handlers.go b/bridge/mattermost/handlers.go index d75e8d40..cd625c55 100644 --- a/bridge/mattermost/handlers.go +++ b/bridge/mattermost/handlers.go @@ -104,6 +104,7 @@ func (b *Bmattermost) handleMatterClient(messages chan *config.Message) { Channel: message.Channel, Text: message.Text, ID: message.Post.Id, + ParentID: message.Post.ParentId, Extra: make(map[string][]interface{}), } @@ -163,7 +164,7 @@ func (b *Bmattermost) handleUploadFile(msg *config.Message) (string, error) { if b.GetBool("PrefixMessagesWithNick") { msg.Text = msg.Username + msg.Text } - res, err = b.mc.PostMessageWithFiles(channelID, msg.Text, []string{id}) + res, err = b.mc.PostMessageWithFiles(channelID, msg.Text, msg.ParentID, []string{id}) } return res, err } |