mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Implement per-topic shared media.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user