Telegram: bump version

This commit is contained in:
Gerasim Troeglazov
2018-09-29 10:01:56 +10:00
parent c406b08d78
commit 665e3f5cb2
4 changed files with 35 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
From 9ead81be3d11cff9ae7a7e5e818d3d4706b4444d Mon Sep 17 00:00:00 2001 From 5e85126e91e7fa202902941c52b0e96c0636d9cf Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com> From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Mon, 24 Sep 2018 00:18:28 +1000 Date: Fri, 28 Sep 2018 19:42:05 +1000
Subject: Add Haiku support Subject: Add Haiku support
@@ -182,10 +182,10 @@ index 8a420c7..0ba85bd 100644
gPlatformString = qsl("Linux64bit"); gPlatformString = qsl("Linux64bit");
break; break;
diff --git a/Telegram/SourceFiles/core/update_checker.cpp b/Telegram/SourceFiles/core/update_checker.cpp diff --git a/Telegram/SourceFiles/core/update_checker.cpp b/Telegram/SourceFiles/core/update_checker.cpp
index 92fc35d..cf29c3a 100644 index 1abe33b..554655a 100644
--- a/Telegram/SourceFiles/core/update_checker.cpp --- a/Telegram/SourceFiles/core/update_checker.cpp
+++ b/Telegram/SourceFiles/core/update_checker.cpp +++ b/Telegram/SourceFiles/core/update_checker.cpp
@@ -633,6 +633,7 @@ bool ParseCommonMap( @@ -636,6 +636,7 @@ bool ParseCommonMap(
case dbipWindows: return "win"; case dbipWindows: return "win";
case dbipMac: return "mac"; case dbipMac: return "mac";
case dbipMacOld: return "mac32"; case dbipMacOld: return "mac32";
@@ -193,7 +193,7 @@ index 92fc35d..cf29c3a 100644
case dbipLinux64: return "linux"; case dbipLinux64: return "linux";
case dbipLinux32: return "linux32"; case dbipLinux32: return "linux32";
} }
@@ -2068,6 +2069,9 @@ bool checkReadyUpdate() { @@ -2071,6 +2072,9 @@ bool checkReadyUpdate() {
#elif defined Q_OS_LINUX // Q_OS_MAC #elif defined Q_OS_LINUX // Q_OS_MAC
QString curUpdater = (cExeDir() + qsl("Updater")); QString curUpdater = (cExeDir() + qsl("Updater"));
QFileInfo updater(cWorkingDir() + qsl("tupdates/temp/Updater")); QFileInfo updater(cWorkingDir() + qsl("tupdates/temp/Updater"));
@@ -216,10 +216,10 @@ index 0cd4059..1047a5f 100644
enum DBIPeerReportSpamStatus { enum DBIPeerReportSpamStatus {
diff --git a/Telegram/SourceFiles/export/data/export_data_types.cpp b/Telegram/SourceFiles/export/data/export_data_types.cpp diff --git a/Telegram/SourceFiles/export/data/export_data_types.cpp b/Telegram/SourceFiles/export/data/export_data_types.cpp
index 5f2e3aa..a3cf2c6 100644 index 5479891..b48fe00 100644
--- a/Telegram/SourceFiles/export/data/export_data_types.cpp --- a/Telegram/SourceFiles/export/data/export_data_types.cpp
+++ b/Telegram/SourceFiles/export/data/export_data_types.cpp +++ b/Telegram/SourceFiles/export/data/export_data_types.cpp
@@ -212,6 +212,8 @@ Image ParseMaxImage( @@ -225,6 +225,8 @@ Image ParseMaxImage(
const MTPVector<MTPPhotoSize> &data, const MTPVector<MTPPhotoSize> &data,
const QString &suggestedPath) { const QString &suggestedPath) {
auto result = Image(); auto result = Image();
@@ -228,7 +228,7 @@ index 5f2e3aa..a3cf2c6 100644
result.file.suggestedPath = suggestedPath; result.file.suggestedPath = suggestedPath;
auto maxArea = int64(0); auto maxArea = int64(0);
@@ -234,6 +236,7 @@ Image ParseMaxImage( @@ -247,6 +249,7 @@ Image ParseMaxImage(
} }
}); });
} }
@@ -236,15 +236,15 @@ index 5f2e3aa..a3cf2c6 100644
return result; return result;
} }
@@ -388,6 +391,7 @@ Document ParseDocument( @@ -406,6 +409,7 @@ Document ParseDocument(
const MTPDocument &data, const QString &suggestedFolder,
const QString &suggestedFolder) { TimeId date) {
auto result = Document(); auto result = Document();
+#ifndef __HAIKU__ +#ifndef __HAIKU__
data.match([&](const MTPDdocument &data) { data.match([&](const MTPDdocument &data) {
result.id = data.vid.v; result.id = data.vid.v;
result.date = data.vdate.v; result.date = data.vdate.v;
@@ -424,6 +428,7 @@ Document ParseDocument( @@ -442,6 +446,7 @@ Document ParseDocument(
}, [&](const MTPDdocumentEmpty &data) { }, [&](const MTPDdocumentEmpty &data) {
result.id = data.vid.v; result.id = data.vid.v;
}); });
@@ -252,7 +252,7 @@ index 5f2e3aa..a3cf2c6 100644
return result; return result;
} }
@@ -1017,6 +1022,7 @@ Message ParseMessage( @@ -1043,6 +1048,7 @@ Message ParseMessage(
const MTPMessage &data, const MTPMessage &data,
const QString &mediaFolder) { const QString &mediaFolder) {
auto result = Message(); auto result = Message();
@@ -260,7 +260,7 @@ index 5f2e3aa..a3cf2c6 100644
data.match([&](const auto &data) { data.match([&](const auto &data) {
result.id = data.vid.v; result.id = data.vid.v;
if constexpr (!MTPDmessageEmpty::Is<decltype(data)>()) { if constexpr (!MTPDmessageEmpty::Is<decltype(data)>()) {
@@ -1103,6 +1109,7 @@ Message ParseMessage( @@ -1131,6 +1137,7 @@ Message ParseMessage(
}, [&](const MTPDmessageEmpty &data) { }, [&](const MTPDmessageEmpty &data) {
result.id = data.vid.v; result.id = data.vid.v;
}); });
@@ -269,7 +269,7 @@ index 5f2e3aa..a3cf2c6 100644
} }
diff --git a/Telegram/SourceFiles/export/export_api_wrap.cpp b/Telegram/SourceFiles/export/export_api_wrap.cpp diff --git a/Telegram/SourceFiles/export/export_api_wrap.cpp b/Telegram/SourceFiles/export/export_api_wrap.cpp
index c882ba8..a1ebad4 100644 index dee4a09..efb0ab2 100644
--- a/Telegram/SourceFiles/export/export_api_wrap.cpp --- a/Telegram/SourceFiles/export/export_api_wrap.cpp
+++ b/Telegram/SourceFiles/export/export_api_wrap.cpp +++ b/Telegram/SourceFiles/export/export_api_wrap.cpp
@@ -719,6 +719,8 @@ void ApiWrap::requestUserpics( @@ -719,6 +719,8 @@ void ApiWrap::requestUserpics(
@@ -308,11 +308,11 @@ index c882ba8..a1ebad4 100644
void ApiWrap::requestChatMessages( void ApiWrap::requestChatMessages(
diff --git a/Telegram/SourceFiles/logs.cpp b/Telegram/SourceFiles/logs.cpp diff --git a/Telegram/SourceFiles/logs.cpp b/Telegram/SourceFiles/logs.cpp
index 74edb3e..bcf4875 100644 index 3236788..822d906 100644
--- a/Telegram/SourceFiles/logs.cpp --- a/Telegram/SourceFiles/logs.cpp
+++ b/Telegram/SourceFiles/logs.cpp +++ b/Telegram/SourceFiles/logs.cpp
@@ -333,7 +333,7 @@ void start(not_null<Core::Launcher*> launcher) { @@ -333,7 +333,7 @@ void start(not_null<Core::Launcher*> launcher) {
if (cBetaVersion()) { if (cAlphaVersion()) {
SetDebugEnabled(true); SetDebugEnabled(true);
workingDirChosen = true; workingDirChosen = true;
-#if defined Q_OS_MAC || defined Q_OS_LINUX -#if defined Q_OS_MAC || defined Q_OS_LINUX
@@ -2098,7 +2098,7 @@ index 9c697fc..36ddf56 100644
#include <rpl/rpl.h> #include <rpl/rpl.h>
#include <string> #include <string>
diff --git a/Telegram/SourceFiles/settings.cpp b/Telegram/SourceFiles/settings.cpp diff --git a/Telegram/SourceFiles/settings.cpp b/Telegram/SourceFiles/settings.cpp
index 680f347..cb0d5a3 100644 index 48c947d..a3784de 100644
--- a/Telegram/SourceFiles/settings.cpp --- a/Telegram/SourceFiles/settings.cpp
+++ b/Telegram/SourceFiles/settings.cpp +++ b/Telegram/SourceFiles/settings.cpp
@@ -77,6 +77,8 @@ DBIPlatform gPlatform = dbipWindows; @@ -77,6 +77,8 @@ DBIPlatform gPlatform = dbipWindows;
@@ -2110,19 +2110,19 @@ index 680f347..cb0d5a3 100644
#elif defined Q_OS_LINUX64 #elif defined Q_OS_LINUX64
DBIPlatform gPlatform = dbipLinux64; DBIPlatform gPlatform = dbipLinux64;
#elif defined Q_OS_LINUX32 #elif defined Q_OS_LINUX32
diff --git a/Telegram/SourceFiles/settings/settings_notifications_widget.cpp b/Telegram/SourceFiles/settings/settings_notifications_widget.cpp diff --git a/Telegram/SourceFiles/settings/settings_notifications.cpp b/Telegram/SourceFiles/settings/settings_notifications.cpp
index 62bbe64..f0c06f9 100644 index 9ece38f..0bc6996 100644
--- a/Telegram/SourceFiles/settings/settings_notifications_widget.cpp --- a/Telegram/SourceFiles/settings/settings_notifications.cpp
+++ b/Telegram/SourceFiles/settings/settings_notifications_widget.cpp +++ b/Telegram/SourceFiles/settings/settings_notifications.cpp
@@ -69,7 +69,7 @@ void NotificationsWidget::createNotificationsControls() { @@ -66,6 +66,8 @@ void SetupNotificationsContent(not_null<Ui::VerticalLayout*> container) {
if (Platform::Notifications::Supported()) { return LangKey();
#ifdef Q_OS_WIN } else if (cPlatform() == dbipWindows) {
nativeNotificationsLabel = lang(lng_settings_use_windows); return lng_settings_use_windows;
-#elif defined Q_OS_LINUX64 || defined Q_OS_LINUX32 // Q_OS_WIN + } else if (cPlatform() == dbipHaiku) {
+#elif defined Q_OS_LINUX64 || defined Q_OS_LINUX32 || defined Q_OS_HAIKU // Q_OS_WIN + return lng_settings_use_native_notifications;
nativeNotificationsLabel = lang(lng_settings_use_native_notifications); } else if (cPlatform() == dbipLinux32
#endif // Q_OS_WIN || Q_OS_LINUX64 || Q_OS_LINUX32 || cPlatform() == dbipLinux64) {
} return lng_settings_use_native_notifications;
diff --git a/Telegram/SourceFiles/storage/storage_encrypted_file_tests.cpp b/Telegram/SourceFiles/storage/storage_encrypted_file_tests.cpp diff --git a/Telegram/SourceFiles/storage/storage_encrypted_file_tests.cpp b/Telegram/SourceFiles/storage/storage_encrypted_file_tests.cpp
index 4d522a9..1ca7dd0 100644 index 4d522a9..1ca7dd0 100644
--- a/Telegram/SourceFiles/storage/storage_encrypted_file_tests.cpp --- a/Telegram/SourceFiles/storage/storage_encrypted_file_tests.cpp
@@ -2378,7 +2378,7 @@ index 1129a95..fd1e3bd 100644
'-no-compress', '-no-compress',
'<(RULE_INPUT_PATH)', '<(RULE_INPUT_PATH)',
diff --git a/Telegram/gyp/refresh.sh b/Telegram/gyp/refresh.sh diff --git a/Telegram/gyp/refresh.sh b/Telegram/gyp/refresh.sh
index b14a916..0d1e0cc 100755 index c42c10f..e2483e9 100755
--- a/Telegram/gyp/refresh.sh --- a/Telegram/gyp/refresh.sh
+++ b/Telegram/gyp/refresh.sh +++ b/Telegram/gyp/refresh.sh
@@ -23,6 +23,14 @@ if [ "$MySystem" == "Linux" ]; then @@ -23,6 +23,14 @@ if [ "$MySystem" == "Linux" ]; then
@@ -2592,10 +2592,10 @@ index 77b126d..6c27563 100644
'variables': { 'variables': {
'qrc_files': [ 'qrc_files': [
diff --git a/Telegram/gyp/telegram_sources.txt b/Telegram/gyp/telegram_sources.txt diff --git a/Telegram/gyp/telegram_sources.txt b/Telegram/gyp/telegram_sources.txt
index 22cf886..fb0c0fa 100644 index 0f24af7..9858cef 100644
--- a/Telegram/gyp/telegram_sources.txt --- a/Telegram/gyp/telegram_sources.txt
+++ b/Telegram/gyp/telegram_sources.txt +++ b/Telegram/gyp/telegram_sources.txt
@@ -475,6 +475,18 @@ @@ -477,6 +477,18 @@
<(src_loc)/platform/linux/notifications_manager_linux.h <(src_loc)/platform/linux/notifications_manager_linux.h
<(src_loc)/platform/linux/specific_linux.cpp <(src_loc)/platform/linux/specific_linux.cpp
<(src_loc)/platform/linux/specific_linux.h <(src_loc)/platform/linux/specific_linux.h

View File

@@ -5,7 +5,7 @@ COPYRIGHT="2013-2018 Telegram"
LICENSE="GNU GPL v3" LICENSE="GNU GPL v3"
REVISION="1" REVISION="1"
SOURCE_URI="https://github.com/telegramdesktop/tdesktop/archive/v$portVersion.tar.gz" SOURCE_URI="https://github.com/telegramdesktop/tdesktop/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="0ebb775dc6535eb3fef290d292b528073e02b4777068425c31f735091902d966" CHECKSUM_SHA256="28c81ae5faeeb06c5ea70a08cc9e78aea62db080f3fec89f685a3a733f50701e"
SOURCE_FILENAME="tdesktop-$portVersion.tar.gz" SOURCE_FILENAME="tdesktop-$portVersion.tar.gz"
SOURCE_DIR="tdesktop-$portVersion" SOURCE_DIR="tdesktop-$portVersion"
srcGitRev_2="697eea96aa90205db4fc368df4127eef56b2a5c6" srcGitRev_2="697eea96aa90205db4fc368df4127eef56b2a5c6"