2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Load more story users on demand.

This commit is contained in:
John Preston
2023-05-29 12:06:21 +04:00
parent 4e165a2107
commit 4a67641460
5 changed files with 30 additions and 1 deletions

View File

@@ -299,7 +299,9 @@ void Stories::loadMore() {
const auto api = &_owner->session().api();
using Flag = MTPstories_GetAllStories::Flag;
_loadMoreRequestId = api->request(MTPstories_GetAllStories(
MTP_flags(_state.isEmpty() ? Flag(0) : Flag::f_next),
MTP_flags(_state.isEmpty()
? Flag(0)
: (Flag::f_next | Flag::f_state)),
MTP_string(_state)
)).done([=](const MTPstories_AllStories &result) {
_loadMoreRequestId = 0;