Show square userpics for monoforums.

This commit is contained in:
John Preston 2025-05-09 13:46:03 +04:00
parent 51878ab38e
commit f8913bf9b9
2 changed files with 4 additions and 2 deletions

View file

@ -438,7 +438,7 @@ void PeerData::paintUserpic(
cloud,
cloud ? nullptr : ensureEmptyUserpic().get(),
size * ratio,
!forceCircle && isForum());
!forceCircle && (isForum() || isMonoforum()));
p.drawImage(QRect(x, y, size, size), view.cached);
}

View file

@ -888,7 +888,9 @@ void UserpicButton::processNewPeerPhoto() {
}
bool UserpicButton::useForumShape() const {
return _forceForumShape || (_peer && _peer->isForum());
return _forceForumShape
|| (_peer && _peer->isForum())
|| (_peer && _peer->isMonoforum());
}
void UserpicButton::grabOldUserpic() {