Implement per-topic shared media.

This commit is contained in:
John Preston
2022-10-11 19:08:19 +04:00
parent eec4b72d9a
commit 58b8eb8e96
58 changed files with 434 additions and 269 deletions
@@ -234,7 +234,8 @@ base::binary_guard ReadBackgroundImageAsync(
void ResolveDocument(
Window::SessionController *controller,
not_null<DocumentData*> document,
HistoryItem *item) {
HistoryItem *item,
MsgId topicRootId) {
if (document->isNull()) {
return;
}
@@ -246,7 +247,7 @@ void ResolveDocument(
&& !document->filepath().isEmpty()) {
File::Launch(document->location(false).fname);
} else if (controller) {
controller->openDocument(document, msgId, true);
controller->openDocument(document, msgId, topicRootId, true);
}
};