mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Allow showing stories in different contexts.
This commit is contained in:
@@ -744,7 +744,13 @@ void Stories::resolve(FullStoryId id, Fn<void()> done) {
|
||||
}
|
||||
}
|
||||
|
||||
void Stories::loadAround(FullStoryId id) {
|
||||
void Stories::loadAround(FullStoryId id, StoriesContext context) {
|
||||
if (v::is<StoriesContextSingle>(context.data)) {
|
||||
return;
|
||||
} else if (v::is<StoriesContextSaved>(context.data)
|
||||
|| v::is<StoriesContextArchive>(context.data)) {
|
||||
return;
|
||||
}
|
||||
const auto i = _all.find(id.peer);
|
||||
if (i == end(_all)) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user