Telegram: bump version

This commit is contained in:
Gerasim Troeglazov
2024-08-02 21:00:39 +10:00
parent 8d073518d8
commit cfd706e67b
4 changed files with 242 additions and 165 deletions

View File

@@ -1,6 +1,6 @@
From a954022fcc603584d30b5c0f8d2b64524af654ac Mon Sep 17 00:00:00 2001
From 054fda7d59820ba7dbd4208e915b5c964b9afbc7 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Mon, 1 Jul 2024 18:02:34 +1000
Date: Thu, 1 Aug 2024 22:40:58 +1000
Subject: Add haiku support
@@ -883,7 +883,7 @@ index 0bc42eb..c87cde9 100644
typedef pid_t PlatformThreadId;
typedef pthread_t PlatformThreadRef;
diff --git a/Telegram/cmake/lib_tgvoip.cmake b/Telegram/cmake/lib_tgvoip.cmake
index 886cd99..705a6a2 100644
index fbae709..18f96ec 100644
--- a/Telegram/cmake/lib_tgvoip.cmake
+++ b/Telegram/cmake/lib_tgvoip.cmake
@@ -118,6 +118,14 @@ PRIVATE
@@ -901,7 +901,7 @@ index 886cd99..705a6a2 100644
# POSIX
os/posix/NetworkSocketPosix.cpp
os/posix/NetworkSocketPosix.h
@@ -160,6 +168,25 @@ elseif (APPLE)
@@ -153,6 +161,25 @@ elseif (APPLE)
TGVOIP_NO_OSX_PRIVATE_API
)
endif()

View File

@@ -1,6 +1,6 @@
From 3a9acb201f5f203879c51187528c75a309b4d4e4 Mon Sep 17 00:00:00 2001
From 485b4a6cff6e0d207a18d117ebe699fc3532daf5 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Mon, 1 Jul 2024 20:26:05 +1000
Date: Thu, 1 Aug 2024 22:42:14 +1000
Subject: Add haiku support
@@ -138,7 +138,7 @@ index 0000000..e5f8b64
+
+resource("BEOS:default_shortcut") "S";
diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt
index 6528a85..a2aa98d 100644
index 8923211..b893e29 100644
--- a/Telegram/CMakeLists.txt
+++ b/Telegram/CMakeLists.txt
@@ -93,6 +93,15 @@ PRIVATE
@@ -157,7 +157,7 @@ index 6528a85..a2aa98d 100644
target_precompile_headers(Telegram PRIVATE $<$<COMPILE_LANGUAGE:CXX,OBJCXX>:${src_loc}/stdafx.h>)
nice_target_sources(Telegram ${src_loc}
PRIVATE
@@ -1594,6 +1603,16 @@ if (NOT build_winstore)
@@ -1600,6 +1609,16 @@ if (NOT build_winstore)
)
endif()
@@ -174,7 +174,7 @@ index 6528a85..a2aa98d 100644
if (DESKTOP_APP_USE_PACKAGED)
remove_target_sources(Telegram ${src_loc}
platform/mac/mac_iconv_helper.c
@@ -1756,7 +1775,7 @@ else()
@@ -1763,7 +1782,7 @@ else()
set(bundle_identifier "com.tdesktop.Telegram")
endif()
set(bundle_entitlements "Telegram.entitlements")
@@ -204,10 +204,10 @@ index 51a9068..b5296bc 100644
if (const auto strong = weak.get()) {
showBox(Box(SettingsBox, strong));
diff --git a/Telegram/SourceFiles/core/core_settings.h b/Telegram/SourceFiles/core/core_settings.h
index 3412c45..1ae4bb1 100644
index 73f0f5e..1c30fa3 100644
--- a/Telegram/SourceFiles/core/core_settings.h
+++ b/Telegram/SourceFiles/core/core_settings.h
@@ -986,7 +986,7 @@ private:
@@ -1000,7 +1000,7 @@ private:
rpl::variable<float64> _dialogsNoChatWidthRatio; // per-window
rpl::variable<int> _thirdColumnWidth = kDefaultThirdColumnWidth; // p-w
bool _notifyFromAll = true;
@@ -681,10 +681,10 @@ index 0000000..21935f0
+} // namespace Notifications
+} // namespace Platform
diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp
index 6d8a8ec..ed30279 100644
index 32437fb..add9ffe 100644
--- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp
+++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp
@@ -26,6 +26,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
@@ -28,6 +28,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/platform/linux/base_linux_xcb_utilities.h"
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
@@ -695,7 +695,7 @@ index 6d8a8ec..ed30279 100644
#include <QtWidgets/QApplication>
#include <QtWidgets/QSystemTrayIcon>
#include <QtCore/QStandardPaths>
@@ -49,6 +53,33 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
@@ -51,6 +55,33 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <iostream>
namespace {
@@ -729,7 +729,7 @@ index 6d8a8ec..ed30279 100644
using namespace gi::repository;
namespace GObject = gi::repository::GObject;
@@ -534,6 +565,10 @@ bool AutostartSupported() {
@@ -550,6 +581,10 @@ bool AutostartSupported() {
}
void AutostartToggle(bool enabled, Fn<void(bool)> done) {
@@ -740,7 +740,7 @@ index 6d8a8ec..ed30279 100644
if (KSandbox::isFlatpak()) {
PortalAutostart(enabled, done);
return;
@@ -561,6 +596,7 @@ void AutostartToggle(bool enabled, Fn<void(bool)> done) {
@@ -577,6 +612,7 @@ void AutostartToggle(bool enabled, Fn<void(bool)> done) {
if (done) {
done(enabled && success);
}
@@ -748,7 +748,7 @@ index 6d8a8ec..ed30279 100644
}
bool AutostartSkip() {
@@ -622,7 +658,11 @@ QString psAppDataPath() {
@@ -638,7 +674,11 @@ QString psAppDataPath() {
}
}
@@ -760,7 +760,7 @@ index 6d8a8ec..ed30279 100644
}
void psDoCleanup() {
@@ -732,6 +772,7 @@ bool OpenSystemSettings(SystemSettingsType type) {
@@ -748,6 +788,7 @@ bool OpenSystemSettings(SystemSettingsType type) {
}
options.push_back(std::move(command));
};
@@ -768,7 +768,7 @@ index 6d8a8ec..ed30279 100644
add("unity-control-center", "sound");
add("kcmshell6", "kcm_pulseaudio");
add("kcmshell5", "kcm_pulseaudio");
@@ -741,7 +782,7 @@ bool OpenSystemSettings(SystemSettingsType type) {
@@ -757,7 +798,7 @@ bool OpenSystemSettings(SystemSettingsType type) {
add("mate-volume-control");
add("pavucontrol-qt");
add("pavucontrol");
@@ -791,10 +791,10 @@ index 2d0e23a..b4cb04c 100644
};
diff --git a/Telegram/ThirdParty/tgcalls/tgcalls/MediaManager.cpp b/Telegram/ThirdParty/tgcalls/tgcalls/MediaManager.cpp
index 88bdd22..6431130 100644
index d1995ba..c6c9513 100644
--- a/Telegram/ThirdParty/tgcalls/tgcalls/MediaManager.cpp
+++ b/Telegram/ThirdParty/tgcalls/tgcalls/MediaManager.cpp
@@ -1038,7 +1038,7 @@ void MediaManager::fillCallStats(CallStats &callStats) {
@@ -1073,7 +1073,7 @@ void MediaManager::fillCallStats(CallStats &callStats) {
}
void MediaManager::setAudioInputDevice(std::string id) {
@@ -804,10 +804,10 @@ index 88bdd22..6431130 100644
SetAudioInputDeviceById(_audioDeviceModule.get(), id);
#endif
diff --git a/Telegram/ThirdParty/tgcalls/tgcalls/group/GroupInstanceCustomImpl.cpp b/Telegram/ThirdParty/tgcalls/tgcalls/group/GroupInstanceCustomImpl.cpp
index eaf2172..2e982f8 100644
index 489d8c6..74c82c1 100644
--- a/Telegram/ThirdParty/tgcalls/tgcalls/group/GroupInstanceCustomImpl.cpp
+++ b/Telegram/ThirdParty/tgcalls/tgcalls/group/GroupInstanceCustomImpl.cpp
@@ -2846,7 +2846,7 @@ public:
@@ -2880,7 +2880,7 @@ public:
}
void setAudioOutputDevice(const std::string &id) {
@@ -816,7 +816,7 @@ index eaf2172..2e982f8 100644
_threads->getWorkerThread()->BlockingCall([&] {
SetAudioOutputDeviceById(_audioDeviceModule.get(), id);
});
@@ -2854,7 +2854,7 @@ public:
@@ -2888,7 +2888,7 @@ public:
}
void setAudioInputDevice(const std::string &id) {
@@ -939,7 +939,7 @@ index ff70a1c..b49c8c0 100644
QString CurrentExecutablePath(int argc, char *argv[]) {
diff --git a/Telegram/lib_base/base/platform/linux/base_info_linux.cpp b/Telegram/lib_base/base/platform/linux/base_info_linux.cpp
index 9b0674c..f562910 100644
index ebf5317..28cd5f9 100644
--- a/Telegram/lib_base/base/platform/linux/base_info_linux.cpp
+++ b/Telegram/lib_base/base/platform/linux/base_info_linux.cpp
@@ -304,6 +304,7 @@ bool IsX11() {
@@ -950,7 +950,7 @@ index 9b0674c..f562910 100644
if (!QGuiApplication::instance()) {
static const auto result = []() -> bool {
struct wl_display *(*wl_display_connect)(const char *name);
@@ -321,6 +322,7 @@ bool IsWayland() {
@@ -323,6 +324,7 @@ bool IsWayland() {
}();
return result;
}
@@ -1029,7 +1029,7 @@ index 8991260..5d4a40b 100644
#include <xdpinhibit/xdpinhibit.hpp>
diff --git a/Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp b/Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp
index 4197367..438c375 100644
index 8e0ec85..de188ac 100644
--- a/Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp
+++ b/Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp
@@ -9,6 +9,10 @@
@@ -1041,8 +1041,8 @@ index 4197367..438c375 100644
+#endif
+
#include <QtGui/QGuiApplication>
#include <QtWidgets/QWidget>
#include <kshell.h>
diff --git a/Telegram/lib_spellcheck/spellcheck/third_party/language_cld3.cpp b/Telegram/lib_spellcheck/spellcheck/third_party/language_cld3.cpp
index efbfb72..9c82321 100644
--- a/Telegram/lib_spellcheck/spellcheck/third_party/language_cld3.cpp
@@ -1105,7 +1105,7 @@ index e51bffa..733f6b5 100644
#include "base/timer.h"
diff --git a/Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.cpp b/Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.cpp
index 6e19fcf..e7a6990 100644
index d4c3f30..22fb3d6 100644
--- a/Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.cpp
+++ b/Telegram/lib_webrtc/webrtc/webrtc_audio_input_tester.cpp
@@ -4,6 +4,11 @@

View File

@@ -5,7 +5,7 @@ COPYRIGHT="2013-2024 Telegram"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v$portVersion/tdesktop-$portVersion-full.tar.gz"
CHECKSUM_SHA256="8c278aae061a9461459a09fe0139854027182a4bec6d706d0f4fb9df9b303e3e"
CHECKSUM_SHA256="ef652ef5d11e4faef4410c73440faafb001128dc1a143c5e22efe939957205bb"
SOURCE_FILENAME="tdesktop-$portVersion-full.tar.gz"
SOURCE_DIR="tdesktop-$portVersion-full"
srcGitRev_2="2b383fe05f8ae78ac99470b9a2b9ea22b3ee5a92"
@@ -52,6 +52,7 @@ REQUIRES="
lib:liblzma$secondaryArchSuffix
lib:libminizip$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libopenh264$secondaryArchSuffix
lib:libopus$secondaryArchSuffix
lib:libprotobuf$secondaryArchSuffix
lib:libqrcodegen$secondaryArchSuffix
@@ -93,6 +94,7 @@ BUILD_REQUIRES="
devel:liblzma$secondaryArchSuffix
devel:libminizip$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libopenh264$secondaryArchSuffix
devel:libopus$secondaryArchSuffix
devel:libprotobuf$secondaryArchSuffix
devel:libqrcodegen$secondaryArchSuffix