From 82fe80e52f310314b718e413ea8af9a9f7531d0b Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 19 Apr 2019 22:59:04 +0200 Subject: [PATCH] Add Id to EditMessage (mattermost). Fixes #802 --- matterclient/messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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