mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-24 14:33:02 +02:00
Show square userpics for monoforums.
This commit is contained in:
parent
51878ab38e
commit
f8913bf9b9
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue