mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Use circle userpics in reactions from forums.
This commit is contained in:
@@ -394,7 +394,8 @@ void PeerData::paintUserpic(
|
||||
Ui::PeerUserpicView &view,
|
||||
int x,
|
||||
int y,
|
||||
int size) const {
|
||||
int size,
|
||||
bool forceCircle) const {
|
||||
const auto cloud = userpicCloudImage(view);
|
||||
const auto ratio = style::DevicePixelRatio();
|
||||
Ui::ValidateUserpicCache(
|
||||
@@ -402,7 +403,7 @@ void PeerData::paintUserpic(
|
||||
cloud,
|
||||
cloud ? nullptr : ensureEmptyUserpic().get(),
|
||||
size * ratio,
|
||||
isForum());
|
||||
!forceCircle && isForum());
|
||||
p.drawImage(QRect(x, y, size, size), view.cached);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user