Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 4c93d3191204f93097e3eb8b846c636c0cd81aca Author: Wim <wim@42.be> Date: Fri Apr 19 22:59:04 2019 +0000 Add Id to EditMessage (mattermost). Fixes #802 diff --git a/matterclient/messages.go b/matterclient/messages.go index b46feff..172d0cc 100644 --- a/matterclient/messages.go +++ b/matterclient/messages.go @@ -837 +837 @@ 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