summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-04-19 22:59:04 +0200
committerWim <wim@42.be>2019-04-19 22:59:04 +0200
commit8ad2be10b20b1c9a42397f86483f4b7663581e43 (patch)
tree7ea1d9a3b9a4d03c915e9f9ff7f1e66d00361e01
parent2d277a15f5b70a6188aa2871333e089f2f95ceec (diff)
downloadmatterbridge-msglm-8ad2be10b20b1c9a42397f86483f4b7663581e43.tar.gz
matterbridge-msglm-8ad2be10b20b1c9a42397f86483f4b7663581e43.tar.bz2
matterbridge-msglm-8ad2be10b20b1c9a42397f86483f4b7663581e43.zip
Add Id to EditMessage (mattermost). Fixes #802
-rw-r--r--matterclient/messages.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/matterclient/messages.go b/matterclient/messages.go
index b46feff1..172d0ccf 100644
--- a/matterclient/messages.go
+++ b/matterclient/messages.go
@@ -83,7 +83,7 @@ func (m *MMClient) DeleteMessage(postId string) error { //nolint:golint
}
func (m *MMClient) EditMessage(postId string, text string) (string, error) { //nolint:golint
- post := &model.Post{Message: text}
+ post := &model.Post{Message: text, Id: postId}
res, resp := m.Client.UpdatePost(postId, post)
if resp.Error != nil {
return "", resp.Error