Skip to content

Commit

Permalink
Fix crash in PeerShortInfoBox.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 6, 2024
1 parent bd6011c commit e4269ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Telegram/SourceFiles/boxes/peers/peer_short_info_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,6 @@ PeerShortInfoBox::PeerShortInfoBox(
) | rpl::start_with_next([=] {
_cover.setScrollTop(_scroll->scrollTop());
}, _cover.lifetime());

setCustomCornersFilling(RectPart::FullTop);
}

PeerShortInfoBox::~PeerShortInfoBox() = default;
Expand Down Expand Up @@ -723,6 +721,7 @@ void PeerShortInfoBox::prepare() {
_roundedTop.setDevicePixelRatio(style::DevicePixelRatio());
refreshRoundedTopImage(getDelegate()->style().bg->c);

setCustomCornersFilling(RectPart::FullTop);
setDimensionsToContent(st::shortInfoWidth, _rows);
}

Expand Down

0 comments on commit e4269ae

Please sign in to comment.