2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Mark stories as read.

This commit is contained in:
John Preston
2023-05-29 19:09:36 +04:00
parent f323370752
commit f814e401b9
7 changed files with 158 additions and 27 deletions

View File

@@ -2486,7 +2486,8 @@ void SessionController::openPeerStories(PeerId peerId) {
return list.user->id;
});
if (i != end(all) && !i->ids.empty()) {
openPeerStory(i->user, i->ids.front());
const auto j = i->ids.lower_bound(i->readTill + 1);
openPeerStory(i->user, j != i->ids.end() ? *j : i->ids.front());
}
}