git: 168f1c6e021f - main - net-im/telegram-desktop: update to 7.3.1 release

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Sat, 10 Oct 2026 16:01:33 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=168f1c6e021fe6a90e96da884903263f1fe0ce27

commit 168f1c6e021fe6a90e96da884903263f1fe0ce27
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2026-10-10 16:00:10 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2026-10-10 16:00:10 +0000

    net-im/telegram-desktop: update to 7.3.1 release
    
    Release notes:  https://github.com/telegramdesktop/tdesktop/releases/tag/v7.2.10 \
                    https://github.com/telegramdesktop/tdesktop/releases/tag/v7.3.0 \
                    https://github.com/telegramdesktop/tdesktop/releases/tag/v7.3.1
---
 net-im/telegram-desktop/Makefile                        |  6 +++---
 net-im/telegram-desktop/distinfo                        |  6 +++---
 ...latform_linux_webview__linux__webkitgtk__library.cpp | 17 ++++++++---------
 3 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
index af8f77e2e51f..63ebbcb4a8d9 100644
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	telegram-desktop
-DISTVERSION=	7.2.9
-PORTREVISION=	1
+DISTVERSION=	7.3.1
 CATEGORIES=	net-im
 MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/
 DISTNAME=	tdesktop-${DISTVERSION}-full
@@ -29,7 +28,8 @@ BUILD_DEPENDS=	boost-libs>0:devel/boost-libs \
 		yasm:devel/yasm \
 		${LOCALBASE}/lib/libtde2e.a:net-im/tde2e \
 		${LOCALBASE}/lib/libtg_owt.a:net-im/tg_owt \
-		${LOCALBASE}/lib/libtlottie.a:graphics/tlottie
+		${LOCALBASE}/lib/libtlottie.a:graphics/tlottie \
+		${LOCALBASE}/lib/libwallet_engine.a:net-p2p/wallet-engine
 LIB_DEPENDS=	libabsl_base.so:devel/abseil \
 		libada.so:devel/libada \
 		libavformat.so:multimedia/ffmpeg \
diff --git a/net-im/telegram-desktop/distinfo b/net-im/telegram-desktop/distinfo
index 6a1652fe5608..b32b2b5a3af9 100644
--- a/net-im/telegram-desktop/distinfo
+++ b/net-im/telegram-desktop/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1789673398
-SHA256 (tdesktop-7.2.9-full.tar.gz) = dcf2e25c4e8aa961c2439312164d42408afa0130e89f31e77b55409a80da942a
-SIZE (tdesktop-7.2.9-full.tar.gz) = 73847391
+TIMESTAMP = 1791642120
+SHA256 (tdesktop-7.3.1-full.tar.gz) = 39b0c93c9d45e9ceb7c56be56402888337b92d4f9980117f510709bfa3bb383d
+SIZE (tdesktop-7.3.1-full.tar.gz) = 78106890
diff --git a/net-im/telegram-desktop/files/patch-Telegram_lib__webview_webview_platform_linux_webview__linux__webkitgtk__library.cpp b/net-im/telegram-desktop/files/patch-Telegram_lib__webview_webview_platform_linux_webview__linux__webkitgtk__library.cpp
index 39e8cecbb064..e3a38e4f2b9c 100644
--- a/net-im/telegram-desktop/files/patch-Telegram_lib__webview_webview_platform_linux_webview__linux__webkitgtk__library.cpp
+++ b/net-im/telegram-desktop/files/patch-Telegram_lib__webview_webview_platform_linux_webview__linux__webkitgtk__library.cpp
@@ -1,16 +1,15 @@
---- Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk_library.cpp.orig	2026-07-14 07:48:16 UTC
+--- Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk_library.cpp.orig	2026-10-08 19:07:02 UTC
 +++ Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk_library.cpp
-@@ -14,10 +14,10 @@ ResolveResult Resolve(Platform platform, WindowMode mo
- 	const auto gtkPlug = (platform == Platform::X11)
- 		&& (mode != WindowMode::External);
- 	const auto lib = (!gtkPlug
--			? base::Platform::LoadLibrary("libwebkitgtk-6.0.so.4", RTLD_NODELETE)
-+			? base::Platform::LoadLibrary("libwebkitgtk-6.0.so", RTLD_NODELETE)
- 			: nullptr)
+@@ -11,9 +11,9 @@ ResolveResult Resolve(Platform platform) {
+ namespace Webview::WebKitGTK::Library {
+ 
+ ResolveResult Resolve(Platform platform) {
+-	const auto lib = base::Platform::LoadLibrary("libwebkitgtk-6.0.so.4", RTLD_NODELETE)
 -		?: base::Platform::LoadLibrary("libwebkit2gtk-4.1.so.0", RTLD_NODELETE)
 -		?: base::Platform::LoadLibrary("libwebkit2gtk-4.0.so.37", RTLD_NODELETE);
++	const auto lib = base::Platform::LoadLibrary("libwebkitgtk-6.0.so", RTLD_NODELETE)
 +		?: base::Platform::LoadLibrary("libwebkit2gtk-4.1.so", RTLD_NODELETE)
 +		?: base::Platform::LoadLibrary("libwebkit2gtk-4.0.so", RTLD_NODELETE);
  	const auto result = lib
  		&& LOAD_LIBRARY_SYMBOL(lib, gtk_init_check)
- 		&& LOAD_LIBRARY_SYMBOL(lib, gtk_widget_get_type)
+ 		&& LOAD_LIBRARY_SYMBOL(lib, gdk_set_allowed_backends)