2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Add video chat management menu items to forum.

This commit is contained in:
John Preston
2022-10-28 17:21:11 +04:00
parent 18bf5c0ee2
commit bc96bdf7a9
6 changed files with 71 additions and 30 deletions

View File

@@ -293,7 +293,12 @@ void Row::paintUserpic(
}
ensureCornerBadgeUserpic();
const auto ratio = style::DevicePixelRatio();
const auto frameSide = context.st->photoSize * style::DevicePixelRatio();
const auto added = std::max({
-st::dialogsCallBadgeSkip.x(),
-st::dialogsCallBadgeSkip.y(),
0 });
const auto frameSide = (context.st->photoSize + added)
* style::DevicePixelRatio();
const auto frameSize = QSize(frameSide, frameSide);
if (_cornerBadgeUserpic->frame.size() != frameSize) {
_cornerBadgeUserpic->frame = QImage(