mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Moved countries to singleton.
This commit is contained in:
@@ -54,7 +54,7 @@ using namespace ::Intro::details;
|
||||
if (const auto parent
|
||||
= Core::App().domain().maybeLastOrSomeAuthedAccount()) {
|
||||
if (const auto session = parent->maybeSession()) {
|
||||
const auto iso = Countries::CountryISO2ByPhone(
|
||||
const auto iso = Countries::Instance().countryISO2ByPhone(
|
||||
session->user()->phone());
|
||||
if (!iso.isEmpty()) {
|
||||
return iso;
|
||||
|
Reference in New Issue
Block a user