MM-15632 DeleteEphemeralMessage to accept a postId string (#10853)

Before it was accepting `post *model.Post`, and returning one.
This is a breaking change for the giphy plugin and any other that rely
on the API.
Этот коммит содержится в:
Lev
2019-05-16 03:32:13 -07:00
коммит произвёл Hanzei
родитель 5d1ee9373f
Коммит 2d3e417833
5 изменённых файлов: 19 добавлений и 17 удалений

Просмотреть файл

@@ -447,8 +447,8 @@ func (api *PluginAPI) UpdateEphemeralPost(userId string, post *model.Post) *mode
return api.app.UpdateEphemeralPost(userId, post)
}
func (api *PluginAPI) DeleteEphemeralPost(userId string, post *model.Post) {
api.app.DeleteEphemeralPost(userId, post)
func (api *PluginAPI) DeleteEphemeralPost(userId, postId string) {
api.app.DeleteEphemeralPost(userId, postId)
}
func (api *PluginAPI) DeletePost(postId string) *model.AppError {