mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix UserpicButton loading an avatar.
This commit is contained in:
parent
19f346e658
commit
d697a57834
1 changed files with 2 additions and 7 deletions
|
@ -196,13 +196,8 @@ UserpicButton::UserpicButton(
|
||||||
, _source(Source::PeerPhoto) {
|
, _source(Source::PeerPhoto) {
|
||||||
Expects(_role != Role::OpenPhoto);
|
Expects(_role != Role::OpenPhoto);
|
||||||
|
|
||||||
if (_source == Source::Custom) {
|
processPeerPhoto();
|
||||||
showCustom({});
|
setupPeerViewers();
|
||||||
} else {
|
|
||||||
processPeerPhoto();
|
|
||||||
setupPeerViewers();
|
|
||||||
}
|
|
||||||
_waiting = false;
|
|
||||||
prepare();
|
prepare();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue