mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
emoji button with progress done for inline bot requests
This commit is contained in:
@@ -548,7 +548,7 @@ void Application::stopUpdate() {
|
||||
void Application::startUpdateCheck(bool forceWait) {
|
||||
updateCheckTimer.stop();
|
||||
if (updateRequestId || updateThread || updateReply || !cAutoUpdate()) return;
|
||||
|
||||
|
||||
int32 constDelay = cBetaVersion() ? 600 : UpdateDelayConstPart, randDelay = cBetaVersion() ? 300 : UpdateDelayRandPart;
|
||||
int32 updateInSecs = cLastUpdateCheck() + constDelay + int32(MTP::nonce<uint32>() % randDelay) - unixtime();
|
||||
bool sendRequest = (updateInSecs <= 0 || updateInSecs > (constDelay + randDelay));
|
||||
@@ -684,7 +684,7 @@ void Application::socketError(QLocalSocket::LocalSocketError e) {
|
||||
socket.close();
|
||||
|
||||
psCheckLocalSocket(serverName);
|
||||
|
||||
|
||||
if (!server.listen(serverName)) {
|
||||
DEBUG_LOG(("Application Error: failed to start listening to %1 server, error %2").arg(serverName).arg(int(server.serverError())));
|
||||
return App::quit();
|
||||
@@ -769,7 +769,7 @@ void Application::startApp() {
|
||||
}
|
||||
|
||||
QNetworkProxyFactory::setUseSystemConfiguration(true);
|
||||
|
||||
|
||||
if (state != Local::ReadMapPassNeeded) {
|
||||
checkMapVersion();
|
||||
}
|
||||
@@ -912,7 +912,7 @@ Application::~Application() {
|
||||
cSetChatDogImage(0);
|
||||
|
||||
style::stopManager();
|
||||
|
||||
|
||||
delete _translator;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user