diff --git a/net-im/telegram-desktop/patches/telegram_desktop-2.1.0.patchset b/net-im/telegram-desktop/patches/telegram_desktop-2.1.1.patchset similarity index 98% rename from net-im/telegram-desktop/patches/telegram_desktop-2.1.0.patchset rename to net-im/telegram-desktop/patches/telegram_desktop-2.1.1.patchset index d2c621554..f59054cca 100644 --- a/net-im/telegram-desktop/patches/telegram_desktop-2.1.0.patchset +++ b/net-im/telegram-desktop/patches/telegram_desktop-2.1.1.patchset @@ -1,4 +1,4 @@ -From d4d8066ce8b75d97e5db685ca9415b63959bca88 Mon Sep 17 00:00:00 2001 +From 406046a6b536d038e20a4bbe2818fc7f4c5a7b2d Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Fri, 24 Apr 2020 23:12:18 +1000 Subject: Add Haiku support @@ -40,7 +40,7 @@ index 645d886..3a0a0e9 100644 add_subdirectory(cmake) add_subdirectory(Telegram) diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt -index a564600..c80b7f4 100644 +index 629c2db..5d6a93e 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -98,7 +98,7 @@ PRIVATE @@ -71,7 +71,7 @@ index a564600..c80b7f4 100644 platform/platform_audio.h platform/platform_file_utilities.h platform/platform_launcher.h -@@ -1187,7 +1199,7 @@ endif() +@@ -1188,7 +1200,7 @@ endif() set_target_properties(Telegram PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${output_folder}) @@ -121,7 +121,7 @@ index 160571e..842ac9b 100644 if (!updater.exists()) { QFileInfo current(curUpdater); diff --git a/Telegram/SourceFiles/data/data_session.cpp b/Telegram/SourceFiles/data/data_session.cpp -index 43e5298..151ef90 100644 +index 1d7d4aa..69612bd 100644 --- a/Telegram/SourceFiles/data/data_session.cpp +++ b/Telegram/SourceFiles/data/data_session.cpp @@ -203,7 +203,7 @@ Session::Session(not_null session) @@ -1740,10 +1740,10 @@ index 7705b2e..b65a843 100644 namespace Audio { diff --git a/Telegram/SourceFiles/platform/platform_file_utilities.h b/Telegram/SourceFiles/platform/platform_file_utilities.h -index 68b1058..f9b05d9 100644 +index b78adf5..0aaff3d 100644 --- a/Telegram/SourceFiles/platform/platform_file_utilities.h +++ b/Telegram/SourceFiles/platform/platform_file_utilities.h -@@ -45,8 +45,10 @@ bool Get( +@@ -46,8 +46,10 @@ bool Get( #ifdef Q_OS_MAC #include "platform/mac/file_utilities_mac.h" @@ -1901,7 +1901,7 @@ index 88ffe6e..7e26c59 100644 #endif return result; diff --git a/Telegram/ThirdParty/libtgvoip/VoIPController.cpp b/Telegram/ThirdParty/libtgvoip/VoIPController.cpp -index 88a8260..dfc6478 100644 +index 08cc73c..1310352 100644 --- a/Telegram/ThirdParty/libtgvoip/VoIPController.cpp +++ b/Telegram/ThirdParty/libtgvoip/VoIPController.cpp @@ -8,6 +8,9 @@ @@ -1914,7 +1914,7 @@ index 88a8260..dfc6478 100644 #include #include #include -@@ -3009,6 +3012,10 @@ double VoIPController::GetCurrentTime(){ +@@ -3005,6 +3008,10 @@ double VoIPController::GetCurrentTime(){ struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return ts.tv_sec+(double)ts.tv_nsec/1000000000.0; @@ -1949,7 +1949,7 @@ index 2c16ca7..e00c731 100644 #ifndef WITHOUT_ALSA #ifndef WITHOUT_PULSE diff --git a/Telegram/ThirdParty/libtgvoip/audio/AudioInput.cpp b/Telegram/ThirdParty/libtgvoip/audio/AudioInput.cpp -index 4d5b573..239406c 100644 +index 674cd34..83a6dbb 100644 --- a/Telegram/ThirdParty/libtgvoip/audio/AudioInput.cpp +++ b/Telegram/ThirdParty/libtgvoip/audio/AudioInput.cpp @@ -33,6 +33,8 @@ @@ -1962,7 +1962,7 @@ index 4d5b573..239406c 100644 #error "Unsupported operating system" #endif diff --git a/Telegram/ThirdParty/libtgvoip/audio/AudioOutput.cpp b/Telegram/ThirdParty/libtgvoip/audio/AudioOutput.cpp -index dc7b61a..b075925 100644 +index 14ab0be..44c615e 100644 --- a/Telegram/ThirdParty/libtgvoip/audio/AudioOutput.cpp +++ b/Telegram/ThirdParty/libtgvoip/audio/AudioOutput.cpp @@ -37,6 +37,8 @@ @@ -3906,14 +3906,14 @@ index a45a6b6..10c9cc1 100644 2.26.0 -From 21f24ae02b1b69676dfe96bb317835eb0144b1ed Mon Sep 17 00:00:00 2001 +From d40ea32a380b3a1cd1682b7ac186a5c2f56196c2 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sat, 25 Apr 2020 11:42:37 +1000 Subject: Use system font diff --git a/Telegram/lib_ui/ui/style/style_core_font.cpp b/Telegram/lib_ui/ui/style/style_core_font.cpp -index 0cd6580..526cc03 100644 +index aacd7e2..5e3b72b 100644 --- a/Telegram/lib_ui/ui/style/style_core_font.cpp +++ b/Telegram/lib_ui/ui/style/style_core_font.cpp @@ -87,7 +87,7 @@ bool LoadCustomFont(const QString &filePath, const QString &familyName, int flag @@ -3937,3 +3937,30 @@ index 0cd6580..526cc03 100644 -- 2.26.0 + +From 6cdbc771a17351f5cec75f466f2285cfb773234f Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Sat, 2 May 2020 20:32:47 +1000 +Subject: Add UnsafeOpenUrl function + + +diff --git a/Telegram/SourceFiles/platform/haiku/file_utilities_haiku.cpp b/Telegram/SourceFiles/platform/haiku/file_utilities_haiku.cpp +index 6b37269..dee383c 100644 +--- a/Telegram/SourceFiles/platform/haiku/file_utilities_haiku.cpp ++++ b/Telegram/SourceFiles/platform/haiku/file_utilities_haiku.cpp +@@ -77,6 +77,12 @@ bool UnsafeShowOpenWith(const QString &filepath) { + return true; + } + ++void UnsafeOpenUrl(const QString &url) { ++ const QStringList arguments{url}; ++ QProcess process; ++ process.startDetached(qsl("open"), arguments); ++} ++ + } // namespace File + + namespace FileDialog { +-- +2.26.0 + diff --git a/net-im/telegram-desktop/telegram_desktop-2.1.0.recipe b/net-im/telegram-desktop/telegram_desktop-2.1.1.recipe similarity index 98% rename from net-im/telegram-desktop/telegram_desktop-2.1.0.recipe rename to net-im/telegram-desktop/telegram_desktop-2.1.1.recipe index 4fc0f422a..50e2f15f0 100644 --- a/net-im/telegram-desktop/telegram_desktop-2.1.0.recipe +++ b/net-im/telegram-desktop/telegram_desktop-2.1.1.recipe @@ -3,10 +3,10 @@ DESCRIPTION="Unofficial build of the original Telegram client for Haiku." HOMEPAGE="https://www.telegram.org/" COPYRIGHT="2013-2020 Telegram" LICENSE="GNU GPL v3" -REVISION="2" +REVISION="1" SOURCE_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v$portVersion/tdesktop-$portVersion-full.tar.gz" -CHECKSUM_SHA256="86d2acc2dfd426ea222ae94984d81e60774f16f3ecc3405578377d90f809a950" +CHECKSUM_SHA256="52e1ef6aff5d78fa979ed0e31129662decf78e9e317184912a7e39fe9f666200" SOURCE_FILENAME="tdesktop-$portVersion-full.tar.gz" SOURCE_DIR="tdesktop-$portVersion-full" srcGitRev_2="0663103551379b958b2e79c51d51d163ec484300"