diff options
author | Wim <wim@42.be> | 2019-04-19 22:59:04 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2019-04-23 23:27:49 +0200 |
commit | 82fe80e52f310314b718e413ea8af9a9f7531d0b (patch) | |
tree | 0169d6eb92ce96d985d321342301c45e8a6e39c6 | |
parent | db012bd9b7ccf41dbe6da4bd0df51536bd177e81 (diff) | |
download | matterbridge-msglm-82fe80e52f310314b718e413ea8af9a9f7531d0b.tar.gz matterbridge-msglm-82fe80e52f310314b718e413ea8af9a9f7531d0b.tar.bz2 matterbridge-msglm-82fe80e52f310314b718e413ea8af9a9f7531d0b.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 |