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

View File

@@ -347,9 +347,9 @@ bool Result::onChoose(Layout::ItemBase *layout) {
Media::View::OpenRequest Result::openRequest() {
using namespace Media::View;
if (_document) {
return OpenRequest(nullptr, _document, nullptr, MsgId());
return OpenRequest(nullptr, _document, nullptr, MsgId(), PeerId());
} else if (_photo) {
return OpenRequest(nullptr, _photo, nullptr, MsgId());
return OpenRequest(nullptr, _photo, nullptr, MsgId(), PeerId());
}
return {};
}