mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 17:57:51 +00:00
Moved countries from Data to Countries namespace.
This commit is contained in:
@@ -8,7 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "ui/special_fields.h"
|
||||
|
||||
#include "lang/lang_keys.h"
|
||||
#include "data/data_countries.h" // Data::ValidPhoneCode
|
||||
#include "countries/countries_instance.h" // Countries::ValidPhoneCode
|
||||
#include "numbers.h"
|
||||
|
||||
#include <QtCore/QRegularExpression>
|
||||
@@ -83,7 +83,7 @@ void CountryCodeInput::correctValue(
|
||||
}
|
||||
}
|
||||
if (!addToNumber.isEmpty()) {
|
||||
auto validCode = Data::ValidPhoneCode(newText.mid(1));
|
||||
auto validCode = Countries::ValidPhoneCode(newText.mid(1));
|
||||
addToNumber = newText.mid(1 + validCode.length()) + addToNumber;
|
||||
newText = '+' + validCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user