mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user