mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-08 04:34:05 +00:00
Add community photo editing in the manage box.
This commit is contained in:
@@ -464,11 +464,7 @@ void PeerData::paintUserpic(
|
||||
const auto cloud = userpicCloudImage(view);
|
||||
const auto ratio = style::DevicePixelRatio();
|
||||
if (context.shape == Ui::PeerUserpicShape::Auto) {
|
||||
context.shape = (isForum() && !isBot())
|
||||
? Ui::PeerUserpicShape::Forum
|
||||
: isMonoforum()
|
||||
? Ui::PeerUserpicShape::Monoforum
|
||||
: Ui::PeerUserpicShape::Circle;
|
||||
context.shape = userpicShape();
|
||||
}
|
||||
Ui::ValidateUserpicCache(
|
||||
view,
|
||||
@@ -1296,7 +1292,10 @@ not_null<const PeerData*> PeerData::userpicPaintingPeer() const {
|
||||
}
|
||||
|
||||
Ui::PeerUserpicShape PeerData::userpicShape() const {
|
||||
return isForum() && !isBot()
|
||||
const auto channel = asChannel();
|
||||
return (isForum() && !isBot())
|
||||
? Ui::PeerUserpicShape::Forum
|
||||
: (channel && channel->isCommunity())
|
||||
? Ui::PeerUserpicShape::Forum
|
||||
: isMonoforum()
|
||||
? Ui::PeerUserpicShape::Monoforum
|
||||
|
||||
Reference in New Issue
Block a user