#10883 adding const error string DismissPostError to be returned by MessageWillBePosted (#10921)

Adds an exported const string that can be used by plugins to signal a client that the incoming post should be dismissed, instead of the current behavior which just leaves it pending.
Этот коммит содержится в:
Evan do Carmo
2019-06-06 00:16:28 -04:00
коммит произвёл Hanzei
родитель 16c11d7bf9
Коммит c73bc21d1e
3 изменённых файлов: 13 добавлений и 1 удалений

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

@@ -296,6 +296,7 @@ func (s *SqlPostStore) Get(id string) (*model.PostList, *model.AppError) {
for _, p := range posts {
pl.AddPost(p)
pl.AddOrder(p.Id)
}
return pl, nil