mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
Show square rounded photo in forum userpic change message.
This commit is contained in:
parent
1c44121db7
commit
468d01fc1a
1 changed files with 4 additions and 1 deletions
|
@ -439,8 +439,11 @@ void Photo::paintUserpicFrame(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto pix = [&] {
|
const auto pix = [&] {
|
||||||
|
const auto forum = _parent->data()->history()->peer->isForum();
|
||||||
const auto args = Images::PrepareArgs{
|
const auto args = Images::PrepareArgs{
|
||||||
.options = Images::Option::RoundCircle,
|
.options = (forum
|
||||||
|
? Images::Option::RoundLarge
|
||||||
|
: Images::Option::RoundCircle),
|
||||||
};
|
};
|
||||||
if (const auto large = _dataMedia->image(PhotoSize::Large)) {
|
if (const auto large = _dataMedia->image(PhotoSize::Large)) {
|
||||||
return large->pix(size, args);
|
return large->pix(size, args);
|
||||||
|
|
Loading…
Add table
Reference in a new issue