diff options
Diffstat (limited to 'matterclient/messages.go')
-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 |