mirror of https://github.com/procxx/kepka.git
parent
06d4ea2975
commit
d94ef82327
|
@ -1750,7 +1750,6 @@ HistoryGif::HistoryGif(gsl::not_null<HistoryItem*> parent, DocumentData *documen
|
||||||
, _data(document)
|
, _data(document)
|
||||||
, _caption(st::minPhotoSize - st::msgPadding.left() - st::msgPadding.right()) {
|
, _caption(st::minPhotoSize - st::msgPadding.left() - st::msgPadding.right()) {
|
||||||
setDocumentLinks(_data, true);
|
setDocumentLinks(_data, true);
|
||||||
_openInMediaviewLink = MakeShared<DocumentOpenClickHandler>(_data);
|
|
||||||
|
|
||||||
setStatusSize(FileStatusSizeReady);
|
setStatusSize(FileStatusSizeReady);
|
||||||
|
|
||||||
|
@ -1775,6 +1774,9 @@ void HistoryGif::initDimensions() {
|
||||||
if (_caption.hasSkipBlock()) {
|
if (_caption.hasSkipBlock()) {
|
||||||
_caption.setSkipBlock(_parent->skipBlockWidth(), _parent->skipBlockHeight());
|
_caption.setSkipBlock(_parent->skipBlockWidth(), _parent->skipBlockHeight());
|
||||||
}
|
}
|
||||||
|
if (!_openInMediaviewLink) {
|
||||||
|
_openInMediaviewLink = MakeShared<DocumentOpenClickHandler>(_data);
|
||||||
|
}
|
||||||
|
|
||||||
bool bubble = _parent->hasBubble();
|
bool bubble = _parent->hasBubble();
|
||||||
int32 tw = 0, th = 0;
|
int32 tw = 0, th = 0;
|
||||||
|
|
Loading…
Reference in New Issue