Support shared media / pins for sublists.

This commit is contained in:
John Preston
2025-06-02 15:00:36 +04:00
parent ffe6786ad1
commit dfc1ec3ccf
83 changed files with 1105 additions and 221 deletions
@@ -2927,8 +2927,12 @@ void SessionController::openPhoto(
if (openSharedStory(item) || openFakeItemStory(message.id, stories)) {
return;
}
_window->openInMediaView(
Media::View::OpenRequest(this, photo, item, message.topicRootId));
_window->openInMediaView(Media::View::OpenRequest(
this,
photo,
item,
message.topicRootId,
message.monoforumPeerId));
}
void SessionController::openPhoto(
@@ -2963,11 +2967,17 @@ void SessionController::openDocument(
document,
item,
message.topicRootId,
message.monoforumPeerId,
false,
usedTimestamp));
return;
}
Data::ResolveDocument(this, document, item, message.topicRootId);
Data::ResolveDocument(
this,
document,
item,
message.topicRootId,
message.monoforumPeerId);
}
bool SessionController::openSharedStory(HistoryItem *item) {