mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-01 00:08:02 +00:00
parent
efdd3df129
commit
d9306e3e30
@ -2563,6 +2563,15 @@ void HistoryGif::updateStatusText() const {
|
||||
}
|
||||
}
|
||||
|
||||
void HistoryGif::refreshParentId(not_null<HistoryItem*> realParent) {
|
||||
HistoryFileMedia::refreshParentId(realParent);
|
||||
|
||||
const auto fullId = realParent->fullId();
|
||||
if (_openInMediaviewLink) {
|
||||
_openInMediaviewLink->setMessageId(fullId);
|
||||
}
|
||||
}
|
||||
|
||||
QString HistoryGif::additionalInfoString() const {
|
||||
if (_data->isVideoMessage()) {
|
||||
updateStatusText();
|
||||
|
@ -389,6 +389,8 @@ public:
|
||||
return MediaTypeGif;
|
||||
}
|
||||
|
||||
void refreshParentId(not_null<HistoryItem*> realParent) override;
|
||||
|
||||
void draw(Painter &p, const QRect &r, TextSelection selection, TimeMs ms) const override;
|
||||
TextState textState(QPoint point, StateRequest request) const override;
|
||||
|
||||
@ -466,7 +468,7 @@ private:
|
||||
bool isSeparateRoundVideo() const;
|
||||
|
||||
not_null<DocumentData*> _data;
|
||||
ClickHandlerPtr _openInMediaviewLink;
|
||||
FileClickHandlerPtr _openInMediaviewLink;
|
||||
int _thumbw = 1;
|
||||
int _thumbh = 1;
|
||||
Text _caption;
|
||||
|
Loading…
Reference in New Issue
Block a user