2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Save to Profile / Archive / Delete in list.

This commit is contained in:
John Preston
2023-06-30 16:45:41 +04:00
parent af0e578da5
commit 5f72a5238c
14 changed files with 179 additions and 36 deletions

View File

@@ -1298,6 +1298,8 @@ void Stories::togglePinnedList(
const auto loaded = saved.loaded;
const auto lastId = !saved.ids.list.empty()
? saved.ids.list.back()
: saved.lastId
? saved.lastId
: std::numeric_limits<StoryId>::max();
auto dirty = false;
for (const auto &id : result.v) {