MM-18623 - invalid reply-count displayed (#12364)

* fixed thread creator, fixed default behaviour of fetching posts
* handle reply-count in getPostThread code path
Этот коммит содержится в:
Eli Yukelzon
2019-10-10 17:14:44 +03:00
коммит произвёл GitHub
родитель 1635eb6006
Коммит 34b4bbcb46
6 изменённых файлов: 37 добавлений и 23 удалений

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

@@ -92,8 +92,8 @@ func (cfg *AutoPostCreator) CreateRandomPostNested(parentId, rootId string) (*mo
RootId: rootId,
Message: postText,
FileIds: fileIds}
rpost, err2 := cfg.client.CreatePost(post)
if err2 != nil {
rpost, resp := cfg.client.CreatePost(post)
if resp != nil && resp.Error != nil {
return nil, false
}
return rpost, true