mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-26 10:31:18 +00:00
Removed inappropriate phrase from photo editor for profile bot photo.
This commit is contained in:
parent
89dc18aaea
commit
cedf161e44
@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "ui/controls/userpic_button.h"
|
||||
|
||||
#include "base/call_delayed.h"
|
||||
#include "boxes/peers/edit_peer_info_box.h" // EditPeerInfoBox::Available.
|
||||
#include "ui/effects/ripple_animation.h"
|
||||
#include "ui/empty_userpic.h"
|
||||
#include "data/data_photo.h"
|
||||
@ -285,6 +286,8 @@ void UserpicButton::choosePhotoLocally() {
|
||||
: QString();
|
||||
const auto phrase = (type == ChosenType::Suggest)
|
||||
? &tr::lng_profile_suggest_sure
|
||||
: (user && EditPeerInfoBox::Available(user))
|
||||
? nullptr
|
||||
: (user && !user->isSelf())
|
||||
? &tr::lng_profile_set_personal_sure
|
||||
: nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user