mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fixed crash in share QR box on copy without profile photo.
This commit is contained in:
parent
b41ac0fc2a
commit
5eafe96525
1 changed files with 3 additions and 1 deletions
|
@ -889,7 +889,9 @@ void FillPeerQrBox(
|
|||
usernameValue()).current().toUpper();
|
||||
const auto link = rpl::variable<QString>(linkValue());
|
||||
const auto textWidth = font->width(username);
|
||||
const auto top = userpicMedia->image(photoSize);
|
||||
const auto top = photoSize
|
||||
? userpicMedia->image(photoSize)
|
||||
: QImage();
|
||||
const auto weak = Ui::MakeWeak(box);
|
||||
|
||||
crl::async([=] {
|
||||
|
|
Loading…
Add table
Reference in a new issue