mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed crash in share QR box on copy without profile photo.
This commit is contained in:
@@ -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([=] {
|
||||
|
||||
Reference in New Issue
Block a user