mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-15 07:30:26 +00:00
Add Id to EditMessage (mattermost). Fixes #802
This commit is contained in:
parent
db012bd9b7
commit
82fe80e52f
@ -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
|
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)
|
res, resp := m.Client.UpdatePost(postId, post)
|
||||||
if resp.Error != nil {
|
if resp.Error != nil {
|
||||||
return "", resp.Error
|
return "", resp.Error
|
||||||
|
Loading…
Reference in New Issue
Block a user