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