2
0
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:
23rd
2021-08-26 18:15:49 +03:00
parent a230e83778
commit 86aaa9673d
12 changed files with 71 additions and 49 deletions

View File

@@ -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;