2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Moved out getting of phone pattern groups from PhoneInput fields.

This commit is contained in:
23rd
2021-11-28 11:25:25 +03:00
committed by John Preston
parent d218b76efe
commit 77d1d9bd3a
10 changed files with 47 additions and 28 deletions

View File

@@ -261,7 +261,8 @@ AddContactBox::AddContactBox(
st::defaultInputField,
tr::lng_contact_phone(),
Countries::ExtractPhoneCode(session->user()->phone()),
phone)
phone,
[](const QString &s) { return Countries::Groups(s); })
, _invertOrder(langFirstNameGoesSecond()) {
if (!phone.isEmpty()) {
_phone->setDisabled(true);