2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Track and load ids of expired mine stories.

This commit is contained in:
John Preston
2023-06-05 19:23:49 +04:00
parent aba84a6010
commit 8eac04cb90
6 changed files with 331 additions and 61 deletions

View File

@@ -2488,7 +2488,7 @@ void SessionController::openPeerStories(
const auto i = all.find(peerId);
if (i != end(all)) {
const auto j = i->second.ids.lower_bound(
StoryIdDate{ i->second.readTill + 1 });
StoryIdDates{ i->second.readTill + 1 });
openPeerStory(
i->second.user,
j != i->second.ids.end() ? j->id : i->second.ids.front().id,