2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Add autoupdating for templates (support).

This commit is contained in:
John Preston
2018-10-05 11:14:00 +03:00
parent ccaec28d0b
commit 1411dfb711
8 changed files with 425 additions and 70 deletions

View File

@@ -1589,11 +1589,6 @@ namespace App {
}
}
bool isValidPhone(QString phone) {
phone = phone.replace(QRegularExpression(qsl("[^\\d]")), QString());
return phone.length() >= 8 || phone == qsl("777") || phone == qsl("333") || phone == qsl("111") || (phone.startsWith(qsl("42")) && (phone.length() == 2 || phone.length() == 5 || phone == qsl("4242")));
}
void quit() {
if (quitting()) {
return;