mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Add video chat management menu items to forum.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user