mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
parent
af69a7a01f
commit
3c4cf2862b
1 changed files with 4 additions and 3 deletions
|
@ -1163,9 +1163,10 @@ object_ptr<Ui::RpWidget> ProfilePhotoPrivacyController::setupBelowWidget(
|
|||
|
||||
_saveAdditional = [=] {
|
||||
if (removeButton->isHidden()) {
|
||||
const auto photoId = SyncUserFallbackPhotoViewer(self);
|
||||
if (const auto photo = self->owner().photo(*photoId)) {
|
||||
controller->session().api().peerPhoto().clear(photo);
|
||||
if (const auto photoId = SyncUserFallbackPhotoViewer(self)) {
|
||||
if (const auto photo = self->owner().photo(*photoId)) {
|
||||
controller->session().api().peerPhoto().clear(photo);
|
||||
}
|
||||
}
|
||||
} else if (!state->localOriginal.isNull()) {
|
||||
controller->session().api().peerPhoto().uploadFallback(
|
||||
|
|
Loading…
Add table
Reference in a new issue