diff --git a/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp b/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp index 526b9700e..426f9705f 100644 --- a/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp @@ -889,7 +889,9 @@ void FillPeerQrBox( usernameValue()).current().toUpper(); const auto link = rpl::variable(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([=] {