Ручное слияние для Windows-клиента: оригинал в dev не попадал с v7.3.1, так как синхронизация v7.3.2-v7.3.4 встала на конфликте lib_ui. Таймер upstream-sync на время слияния остановлен. - lib_ui: форк 7e5d8bc (слияние с оригиналом 1ff7be7). - Версия 7.3.4 без бета-признака: BetaChannel 0, AppBetaVersion false. - mtproto: «плохая конфигурация прокси» теперь учитывает прокси (колбэк рантайма, делегат сессии, соединение); правки session_private перенесены в mtproto/session/private/* (лимиты длины, пустые RPC-ответы, DEBUG_LOG дампов). - update_checker: ограничение размера ответа и отключение HTTP/2 оригинала поверх гонки зеркал форка. - thanos_effect_renderer: версия оригинала (R32F вместо RGBA32F); проверка возможностей — по compute. - download_manager_mtproto: проверка слишком большой части оригинала. - prepare.py: патчи qtsvg и Windows 7 оригинала вместе с patches_extra форка. - Файлы .agents/.claude/.github, удалённые форком, остаются удалёнными. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
83 lines
1.6 KiB
C++
83 lines
1.6 KiB
C++
/*
|
|
This file is part of Telegram Desktop,
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
For license and copyright information please follow this link:
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
*/
|
|
#pragma once
|
|
|
|
#include "platform/platform_specific.h"
|
|
#include "platform/mac/specific_mac_p.h"
|
|
|
|
namespace Platform {
|
|
|
|
inline bool AutostartSupported() {
|
|
return false;
|
|
}
|
|
|
|
inline void AutostartRequestStateFromSystem(Fn<void(bool)> callback) {
|
|
}
|
|
|
|
inline void AutostartValidate() {
|
|
}
|
|
|
|
inline bool TrayIconSupported() {
|
|
return true;
|
|
}
|
|
|
|
inline bool SkipTaskbarSupported() {
|
|
return false;
|
|
}
|
|
|
|
[[nodiscard]] bool HasTouchBar();
|
|
|
|
void ActivateThisProcess();
|
|
|
|
inline uint64 ActivationWindowId(not_null<QWidget*> window) {
|
|
return 1;
|
|
}
|
|
|
|
inline void ActivateOtherProcess(uint64 processId, uint64 windowId) {
|
|
}
|
|
|
|
inline bool WaitForProcessExit(uint64 processId, crl::time timeout) {
|
|
return true;
|
|
}
|
|
|
|
inline bool LocalSocketPeerAllowed(qintptr) {
|
|
return true;
|
|
}
|
|
|
|
inline QString ApplicationIconName() {
|
|
return {};
|
|
}
|
|
|
|
inline QString ExecutablePathForShortcuts() {
|
|
return cExeDir() + cExeName();
|
|
}
|
|
|
|
namespace ThirdParty {
|
|
|
|
inline void start() {
|
|
}
|
|
|
|
} // namespace ThirdParty
|
|
} // namespace Platform
|
|
|
|
inline void psCheckLocalSocket(const QString &serverName) {
|
|
QFile address(serverName);
|
|
if (address.exists()) {
|
|
address.remove();
|
|
}
|
|
}
|
|
|
|
QString psAppDataPath();
|
|
void psSendToMenu(bool send, bool silent = false);
|
|
|
|
int psCleanup();
|
|
int psFixPrevious();
|
|
|
|
void psDownloadPathEnableAccess();
|
|
QByteArray psDownloadPathBookmark(const QString &path);
|
|
QByteArray psPathBookmark(const QString &path);
|