mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-30 19:57:21 +00:00
parent
63098d3c7d
commit
efdd3df129
@ -908,6 +908,14 @@ std::unique_ptr<Media> MediaWebPage::clone(not_null<HistoryItem*> parent) {
|
|||||||
return std::make_unique<MediaWebPage>(parent, _page);
|
return std::make_unique<MediaWebPage>(parent, _page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DocumentData *MediaWebPage::document() const {
|
||||||
|
return _page->document;
|
||||||
|
}
|
||||||
|
|
||||||
|
PhotoData *MediaWebPage::photo() const {
|
||||||
|
return _page->photo;
|
||||||
|
}
|
||||||
|
|
||||||
WebPageData *MediaWebPage::webpage() const {
|
WebPageData *MediaWebPage::webpage() const {
|
||||||
return _page;
|
return _page;
|
||||||
}
|
}
|
||||||
|
@ -292,6 +292,8 @@ public:
|
|||||||
|
|
||||||
std::unique_ptr<Media> clone(not_null<HistoryItem*> parent) override;
|
std::unique_ptr<Media> clone(not_null<HistoryItem*> parent) override;
|
||||||
|
|
||||||
|
DocumentData *document() const override;
|
||||||
|
PhotoData *photo() const override;
|
||||||
WebPageData *webpage() const override;
|
WebPageData *webpage() const override;
|
||||||
|
|
||||||
bool hasReplyPreview() const override;
|
bool hasReplyPreview() const override;
|
||||||
|
Loading…
Reference in New Issue
Block a user