mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-20 15:17:41 +00:00
Allow long support user information.
This commit is contained in:
parent
905376de1d
commit
bf9069524a
@ -28,6 +28,7 @@ namespace {
|
||||
|
||||
constexpr auto kOccupyFor = TimeId(60);
|
||||
constexpr auto kReoccupyEach = 30 * TimeMs(1000);
|
||||
constexpr auto kMaxSupportInfoLength = MaxMessageSize * 4;
|
||||
|
||||
class EditInfoBox : public BoxContent {
|
||||
public:
|
||||
@ -57,7 +58,7 @@ EditInfoBox::EditInfoBox(
|
||||
[] { return QString("Support information"); },
|
||||
text)
|
||||
, _submit(std::move(submit)) {
|
||||
_field->setMaxLength(Global::CaptionLengthMax());
|
||||
_field->setMaxLength(kMaxSupportInfoLength);
|
||||
_field->setSubmitSettings(Ui::InputField::SubmitSettings::Both);
|
||||
_field->setInstantReplaces(Ui::InstantReplaces::Default());
|
||||
_field->setInstantReplacesEnabled(Global::ReplaceEmojiValue());
|
||||
|
Loading…
Reference in New Issue
Block a user