diff options
author | Wim <wim@42.be> | 2019-04-19 22:59:04 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2019-04-19 22:59:04 +0200 |
commit | 8ad2be10b20b1c9a42397f86483f4b7663581e43 (patch) | |
tree | 7ea1d9a3b9a4d03c915e9f9ff7f1e66d00361e01 | |
parent | 2d277a15f5b70a6188aa2871333e089f2f95ceec (diff) | |
download | matterbridge-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.go | 2 |
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 |