mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Moved App::formatPhone to td_ui.
This commit is contained in:
@@ -14,7 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "data/data_user.h"
|
||||
#include "data/data_session.h"
|
||||
#include "ui/image/image.h"
|
||||
#include "app.h"
|
||||
#include "ui/text/format_values.h" // Ui::FormatPhone
|
||||
|
||||
namespace Serialize {
|
||||
namespace {
|
||||
@@ -231,7 +231,7 @@ PeerData *readPeer(
|
||||
&& (user->id != selfId)
|
||||
&& (contact <= 0);
|
||||
const auto pname = (showPhone && !phone.isEmpty())
|
||||
? App::formatPhone(phone)
|
||||
? Ui::FormatPhone(phone)
|
||||
: QString();
|
||||
|
||||
user->setPhone(phone);
|
||||
|
||||
Reference in New Issue
Block a user