mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Limit voice chat title to 40 characters.
This commit is contained in:
parent
056cab6268
commit
5621e41529
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
namespace Calls::Group {
|
namespace Calls::Group {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
constexpr auto kMaxGroupCallLength = 40;
|
||||||
|
|
||||||
void EditGroupCallTitleBox(
|
void EditGroupCallTitleBox(
|
||||||
not_null<Ui::GenericBox*> box,
|
not_null<Ui::GenericBox*> box,
|
||||||
const QString &placeholder,
|
const QString &placeholder,
|
||||||
|
@ -42,6 +44,7 @@ void EditGroupCallTitleBox(
|
||||||
st::groupCallField,
|
st::groupCallField,
|
||||||
rpl::single(placeholder),
|
rpl::single(placeholder),
|
||||||
title));
|
title));
|
||||||
|
input->setMaxLength(kMaxGroupCallLength);
|
||||||
box->setFocusCallback([=] {
|
box->setFocusCallback([=] {
|
||||||
input->setFocusFast();
|
input->setFocusFast();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue