mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Removed inappropriate phrase from photo editor for profile bot photo.
This commit is contained in:
parent
89dc18aaea
commit
cedf161e44
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "ui/controls/userpic_button.h"
|
#include "ui/controls/userpic_button.h"
|
||||||
|
|
||||||
#include "base/call_delayed.h"
|
#include "base/call_delayed.h"
|
||||||
|
#include "boxes/peers/edit_peer_info_box.h" // EditPeerInfoBox::Available.
|
||||||
#include "ui/effects/ripple_animation.h"
|
#include "ui/effects/ripple_animation.h"
|
||||||
#include "ui/empty_userpic.h"
|
#include "ui/empty_userpic.h"
|
||||||
#include "data/data_photo.h"
|
#include "data/data_photo.h"
|
||||||
|
@ -285,6 +286,8 @@ void UserpicButton::choosePhotoLocally() {
|
||||||
: QString();
|
: QString();
|
||||||
const auto phrase = (type == ChosenType::Suggest)
|
const auto phrase = (type == ChosenType::Suggest)
|
||||||
? &tr::lng_profile_suggest_sure
|
? &tr::lng_profile_suggest_sure
|
||||||
|
: (user && EditPeerInfoBox::Available(user))
|
||||||
|
? nullptr
|
||||||
: (user && !user->isSelf())
|
: (user && !user->isSelf())
|
||||||
? &tr::lng_profile_set_personal_sure
|
? &tr::lng_profile_set_personal_sure
|
||||||
: nullptr;
|
: nullptr;
|
||||||
|
|
Loading…
Add table
Reference in a new issue