[Improvement] Use QSysInfo for system info in session
This commit is contained in:
parent
7b55777eb0
commit
3977b89f3d
2 changed files with 5 additions and 5 deletions
|
|
@ -32,7 +32,7 @@ I'm trying to use my mobile phone number: ") + phone + qsl("\n\
|
|||
But Telegram says it's banned. Please help.\n\
|
||||
\n\
|
||||
App version: ") + version + qsl("\n\
|
||||
OS version: ") + ::Platform::SystemVersionPretty() + qsl("\n\
|
||||
OS version: ") + QSysInfo::prettyProductName() + qsl("\n\
|
||||
Locale: ") + ::Platform::SystemLanguage();
|
||||
|
||||
const auto url = "mailto:?to="
|
||||
|
|
|
|||
|
|
@ -417,8 +417,8 @@ void Account::startMtp(std::unique_ptr<MTP::Config> config) {
|
|||
|
||||
auto fields = base::take(_mtpFields);
|
||||
fields.config = std::move(config);
|
||||
fields.deviceModel = Platform::DeviceModelPretty();
|
||||
fields.systemVersion = Platform::SystemVersionPretty();
|
||||
fields.deviceModel = QSysInfo::machineHostName();
|
||||
fields.systemVersion = QSysInfo::prettyProductName();
|
||||
_mtp = std::make_unique<MTP::Instance>(
|
||||
MTP::Instance::Mode::Normal,
|
||||
std::move(fields));
|
||||
|
|
@ -563,8 +563,8 @@ void Account::destroyMtpKeys(MTP::AuthKeysList &&keys) {
|
|||
destroyFields.mainDcId = MTP::Instance::Fields::kNoneMainDc;
|
||||
destroyFields.config = std::make_unique<MTP::Config>(_mtp->config());
|
||||
destroyFields.keys = std::move(keys);
|
||||
destroyFields.deviceModel = Platform::DeviceModelPretty();
|
||||
destroyFields.systemVersion = Platform::SystemVersionPretty();
|
||||
destroyFields.deviceModel = QSysInfo::machineHostName();
|
||||
destroyFields.systemVersion = QSysInfo::prettyProductName();
|
||||
_mtpForKeysDestroy = std::make_unique<MTP::Instance>(
|
||||
MTP::Instance::Mode::KeysDestroyer,
|
||||
std::move(destroyFields));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue