mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
feat: show official app flag in session details
This commit is contained in:
@@ -30,6 +30,7 @@ Authorizations::Entry ParseEntry(const MTPDauthorization &data) {
|
||||
result.hash = data.is_current() ? 0 : data.vhash().v;
|
||||
result.incomplete = data.is_password_pending();
|
||||
result.callsDisabled = data.is_call_requests_disabled();
|
||||
result.officialApp = data.is_official_app();
|
||||
|
||||
const auto apiId = result.apiId = data.vapi_id().v;
|
||||
const auto isTest = (apiId == TestApiId);
|
||||
|
||||
@@ -23,6 +23,7 @@ public:
|
||||
|
||||
bool incomplete = false;
|
||||
bool callsDisabled = false;
|
||||
bool officialApp = false;
|
||||
int apiId = 0;
|
||||
TimeId activeTime = 0;
|
||||
QString name, active, info, ip, location, system, platform;
|
||||
|
||||
@@ -460,6 +460,11 @@ void SessionInfoBox(
|
||||
tr::lng_sessions_system(),
|
||||
data.system,
|
||||
st::menuIconInfo);
|
||||
AddSessionInfoRow(
|
||||
container,
|
||||
tr::ayu_SessionInfoOfficialApp(),
|
||||
data.officialApp ? tr::lng_box_yes(tr::now) : tr::lng_box_no(tr::now),
|
||||
st::menuIconInfo);
|
||||
AddSessionInfoRow(
|
||||
container,
|
||||
tr::lng_sessions_ip(),
|
||||
|
||||
Reference in New Issue
Block a user