mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Allow long support user information.
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user