Get posts for a channel has_next attribute fix (#26901)

* Get posts for a channel has_next attribute fix

* HasNext attribute test changes

* tests fix

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Arya Khochare
2024-08-21 11:00:42 +05:30
коммит произвёл GitHub
родитель 468813c04f
Коммит 4999c4a9c6
4 изменённых файлов: 13 добавлений и 11 удалений

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

@@ -15,7 +15,7 @@ type PostList struct {
NextPostId string `json:"next_post_id"`
PrevPostId string `json:"prev_post_id"`
// HasNext indicates whether there are more items to be fetched or not.
HasNext bool `json:"has_next"`
HasNext *bool `json:"has_next,omitempty"`
// If there are inaccessible posts, FirstInaccessiblePostTime is the time of the latest inaccessible post
FirstInaccessiblePostTime int64 `json:"first_inaccessible_post_time"`
}