Skip to content

Commit 778ed28

Browse files
OriginCodestydxm
authored andcommitted
telegram-desktop: update to 6.1.1
Signed-off-by: Kaiyang Wu <[email protected]>
1 parent 8a354b3 commit 778ed28

14 files changed

+154
-49
lines changed

app-web/telegram-desktop/autobuild/patches/0001-fix-window.style-set-default-window-width-to-360px.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
From f5e7c46e53c66342cd4c5871993689a4f28ade86 Mon Sep 17 00:00:00 2001
1+
From 32c53db1ec49b42ba17f6728fca2822ed8b453b9 Mon Sep 17 00:00:00 2001
22
From: Mingcong Bai <[email protected]>
33
Date: Tue, 9 Apr 2024 16:36:00 +0800
4-
Subject: [PATCH 01/12] fix(window.style): set default window width to 360px
4+
Subject: [PATCH 01/13] fix(window.style): set default window width to 360px
55

66
This allows the Telegram window to scale properly on the PinePhone.
77
---
88
Telegram/SourceFiles/window/window.style | 4 ++--
99
1 file changed, 2 insertions(+), 2 deletions(-)
1010

1111
diff --git a/Telegram/SourceFiles/window/window.style b/Telegram/SourceFiles/window/window.style
12-
index acdda31299..899bcb5827 100644
12+
index a18a471533..a72dbf3989 100644
1313
--- a/Telegram/SourceFiles/window/window.style
1414
+++ b/Telegram/SourceFiles/window/window.style
1515
@@ -10,7 +10,7 @@ using "ui/widgets/widgets.style";
@@ -31,5 +31,5 @@ index acdda31299..899bcb5827 100644
3131
columnMaximalWidthThird: 392px;
3232

3333
--
34-
2.50.0
34+
2.51.0
3535

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
From 194e15bdcdcbf9d8b94e7cb2b37220c34b9e8015 Mon Sep 17 00:00:00 2001
1+
From aacf40717bfd501d0374e8d4434af7cc65e32a54 Mon Sep 17 00:00:00 2001
22
From: Mingcong Bai <[email protected]>
33
Date: Tue, 9 Apr 2024 17:43:49 +0800
4-
Subject: [PATCH 02/12] fix(core_settings.h): use system window decoration by
4+
Subject: [PATCH 02/13] fix(core_settings.h): use system window decoration by
55
default
66

77
---
88
Telegram/SourceFiles/core/core_settings.h | 2 +-
99
1 file changed, 1 insertion(+), 1 deletion(-)
1010

1111
diff --git a/Telegram/SourceFiles/core/core_settings.h b/Telegram/SourceFiles/core/core_settings.h
12-
index 8ce8d72818..a116d04020 100644
12+
index 9ee26fea74..98f480a3c3 100644
1313
--- a/Telegram/SourceFiles/core/core_settings.h
1414
+++ b/Telegram/SourceFiles/core/core_settings.h
15-
@@ -1037,7 +1037,7 @@ private:
15+
@@ -1044,7 +1044,7 @@ private:
1616
rpl::variable<float64> _dialogsNoChatWidthRatio; // per-window
1717
rpl::variable<int> _thirdColumnWidth = kDefaultThirdColumnWidth; // p-w
1818
bool _notifyFromAll = true;
@@ -22,5 +22,5 @@ index 8ce8d72818..a116d04020 100644
2222
rpl::variable<bool> _systemDarkModeEnabled = true;
2323
rpl::variable<WindowTitleContent> _windowTitleContent;
2424
--
25-
2.50.0
25+
2.51.0
2626

app-web/telegram-desktop/autobuild/patches/0003-fix-ui-fix-build-with-Qt-5.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From cdcfccf854f70b896b654d57e7a2b8e5a123c340 Mon Sep 17 00:00:00 2001
1+
From 4ad3d9247e8efc560188c32c2ed7a4f0df128c6d Mon Sep 17 00:00:00 2001
22
From: Mingcong Bai <[email protected]>
33
Date: Tue, 9 Apr 2024 22:02:32 +0800
4-
Subject: [PATCH 03/12] fix(ui): fix build with Qt 5
4+
Subject: [PATCH 03/13] fix(ui): fix build with Qt 5
55

66
Co-authored-by: Henry Chen <[email protected]>
77
---
@@ -38,7 +38,7 @@ index 2fba82e0da..0538f8d7e7 100644
3838
return _type;
3939
}
4040
diff --git a/Telegram/lib_webview/CMakeLists.txt b/Telegram/lib_webview/CMakeLists.txt
41-
index 4bf3d98ecc..072da88f0a 100644
41+
index 4b9450934b..522208bd89 100644
4242
--- a/Telegram/lib_webview/CMakeLists.txt
4343
+++ b/Telegram/lib_webview/CMakeLists.txt
4444
@@ -7,6 +7,7 @@
@@ -68,5 +68,5 @@ index 24274c3794..a57c4fab1f 100644
6868
+
6969
+#include "webview_linux_compositor.moc"
7070
--
71-
2.50.0
71+
2.51.0
7272

app-web/telegram-desktop/autobuild/patches/0004-fix-core-launcher.cpp-revert-to-old-HiDPI-handling-b.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From d90a2ff31a4c5d5f4b29765c6cdd8f3e0a129c81 Mon Sep 17 00:00:00 2001
1+
From c8bd79ec79167a76192e7be285766b3022770d14 Mon Sep 17 00:00:00 2001
22
From: Mingcong Bai <[email protected]>
33
Date: Tue, 9 Apr 2024 22:04:57 +0800
4-
Subject: [PATCH 04/12] fix(core/launcher.cpp): revert to old HiDPI handling
4+
Subject: [PATCH 04/13] fix(core/launcher.cpp): revert to old HiDPI handling
55
behaviour
66

77
The current implementation makes icons blurry in Qt 5 builds, whilst
@@ -28,5 +28,5 @@ index e844acf9ee..adb4b80fb6 100644
2828

2929
if (OptionFractionalScalingEnabled.value()) {
3030
--
31-
2.50.0
31+
2.51.0
3232

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
From a72244ae434989c343e1dac1ab0b293b47914846 Mon Sep 17 00:00:00 2001
1+
From 356027ef8b33d5a3a5dc290ba808b0984e026679 Mon Sep 17 00:00:00 2001
22
From: Jiangjin Wang <[email protected]>
33
Date: Mon, 6 May 2024 00:06:32 -0700
4-
Subject: [PATCH 05/12] fix(settings): use system fonts by default
4+
Subject: [PATCH 05/13] fix(settings): use system fonts by default
55

66
---
77
Telegram/SourceFiles/core/core_settings.h | 3 ++-
88
1 file changed, 2 insertions(+), 1 deletion(-)
99

1010
diff --git a/Telegram/SourceFiles/core/core_settings.h b/Telegram/SourceFiles/core/core_settings.h
11-
index a116d04020..ad75558a52 100644
11+
index 98f480a3c3..7fdf581191 100644
1212
--- a/Telegram/SourceFiles/core/core_settings.h
1313
+++ b/Telegram/SourceFiles/core/core_settings.h
1414
@@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
@@ -19,7 +19,7 @@ index a116d04020..ad75558a52 100644
1919
#include "base/flags.h"
2020
#include "emoji.h"
2121

22-
@@ -1071,7 +1072,7 @@ private:
22+
@@ -1078,7 +1079,7 @@ private:
2323
rpl::variable<bool> _storiesClickTooltipHidden = false;
2424
rpl::variable<bool> _ttlVoiceClickTooltipHidden = false;
2525
WindowPosition _ivPosition;
@@ -29,5 +29,5 @@ index a116d04020..ad75558a52 100644
2929
std::optional<bool> _weatherInCelsius;
3030
QByteArray _tonsiteStorageToken;
3131
--
32-
2.50.0
32+
2.51.0
3333

app-web/telegram-desktop/autobuild/patches/0006-Remove-the-confusing-Default-option-from-selectable-.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
From 360bb552a3fcdaae7bf7859983bbc921cae21453 Mon Sep 17 00:00:00 2001
1+
From 13b2e2f8b04ef5c93ecb0fbb9c7b987ccb0153d7 Mon Sep 17 00:00:00 2001
22
From: Jiangjin Wang <[email protected]>
33
Date: Mon, 6 May 2024 17:15:17 -0700
4-
Subject: [PATCH 06/12] Remove the confusing "Default" option from selectable
4+
Subject: [PATCH 06/13] Remove the confusing "Default" option from selectable
55
fonts
66

77
---
88
Telegram/SourceFiles/ui/boxes/choose_font_box.cpp | 7 +++----
99
1 file changed, 3 insertions(+), 4 deletions(-)
1010

1111
diff --git a/Telegram/SourceFiles/ui/boxes/choose_font_box.cpp b/Telegram/SourceFiles/ui/boxes/choose_font_box.cpp
12-
index 97f65b65d9..9eff4830c3 100644
12+
index a891c422f1..585c3a7934 100644
1313
--- a/Telegram/SourceFiles/ui/boxes/choose_font_box.cpp
1414
+++ b/Telegram/SourceFiles/ui/boxes/choose_font_box.cpp
1515
@@ -532,7 +532,7 @@ std::vector<Selector::Entry> Selector::FullList(const QString &now) {
@@ -45,5 +45,5 @@ index 97f65b65d9..9eff4830c3 100644
4545
std::swap(result[2], *nowIt);
4646
++skip;
4747
--
48-
2.50.0
48+
2.51.0
4949

app-web/telegram-desktop/autobuild/patches/0007-fix-lib_tl-add-missing-cstring-include.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 852ee247a623e54af0d842ae052a75f9ecc6e65d Mon Sep 17 00:00:00 2001
1+
From 93b130c8a1d63e7700cbbf6d024b0e13bf28fd06 Mon Sep 17 00:00:00 2001
22
From: Kaiyang Wu <[email protected]>
33
Date: Fri, 1 Nov 2024 23:15:07 -0700
4-
Subject: [PATCH 07/12] fix(lib_tl): add missing cstring include
4+
Subject: [PATCH 07/13] fix(lib_tl): add missing cstring include
55

66
Signed-off-by: Kaiyang Wu <[email protected]>
77
---
@@ -21,5 +21,5 @@ index 5eadf62a93..961f7febe0 100644
2121

2222
namespace tl {
2323
--
24-
2.50.0
24+
2.51.0
2525

app-web/telegram-desktop/autobuild/patches/0008-fix-lib_webview-add-missing-cstdint-include.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 3f286d01e9fa4b7890f1cd33e7ff62c93cb2dfa6 Mon Sep 17 00:00:00 2001
1+
From c834fec9d03688fa567c96e3c1bb58bcfe1df7ea Mon Sep 17 00:00:00 2001
22
From: Kaiyang Wu <[email protected]>
33
Date: Fri, 1 Nov 2024 23:28:52 -0700
4-
Subject: [PATCH 08/12] fix(lib_webview): add missing cstdint include
4+
Subject: [PATCH 08/13] fix(lib_webview): add missing cstdint include
55

66
Signed-off-by: Kaiyang Wu <[email protected]>
77
---
@@ -21,5 +21,5 @@ index 4a92fe3020..3cf6125358 100644
2121
#include <rpl/never.h>
2222
#include <rpl/producer.h>
2323
--
24-
2.50.0
24+
2.51.0
2525

app-web/telegram-desktop/autobuild/patches/0009-fix-current_geo_location_linux-add-missing-QGuiAppli.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 4e025fb57c6d29c22746b51aeeb70d6e5117061d Mon Sep 17 00:00:00 2001
1+
From 31d02d13659fb2194044a0283017c6c68c832859 Mon Sep 17 00:00:00 2001
22
From: Kaiyang Wu <[email protected]>
33
Date: Thu, 13 Feb 2025 22:30:40 -0800
4-
Subject: [PATCH 09/12] fix(current_geo_location_linux): add missing
4+
Subject: [PATCH 09/13] fix(current_geo_location_linux): add missing
55
QGuiApplication include
66

77
Signed-off-by: Kaiyang Wu <[email protected]>
@@ -22,5 +22,5 @@ index 7015af7398..d48fc7025a 100644
2222
namespace Platform {
2323
namespace {
2424
--
25-
2.50.0
25+
2.51.0
2626

app-web/telegram-desktop/autobuild/patches/0010-fix-core_settings.h-enable-video-hardware-accelerati.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 3528d978865341d1efa3f30bd353937bcd4cbba4 Mon Sep 17 00:00:00 2001
1+
From 7c4268f115355ecffe3bfdb85c3d7ec46c1a674b Mon Sep 17 00:00:00 2001
22
From: Kaiyang Wu <[email protected]>
33
Date: Wed, 19 Mar 2025 21:30:27 -0700
4-
Subject: [PATCH 10/12] fix(core_settings.h): enable video hardware
4+
Subject: [PATCH 10/13] fix(core_settings.h): enable video hardware
55
acceleration by default
66

77
Signed-off-by: Kaiyang Wu <[email protected]>
@@ -10,10 +10,10 @@ Signed-off-by: Kaiyang Wu <[email protected]>
1010
1 file changed, 4 deletions(-)
1111

1212
diff --git a/Telegram/SourceFiles/core/core_settings.h b/Telegram/SourceFiles/core/core_settings.h
13-
index ad75558a52..e9fb514bff 100644
13+
index 7fdf581191..0b6386477a 100644
1414
--- a/Telegram/SourceFiles/core/core_settings.h
1515
+++ b/Telegram/SourceFiles/core/core_settings.h
16-
@@ -1053,11 +1053,7 @@ private:
16+
@@ -1060,11 +1060,7 @@ private:
1717
rpl::variable<Media::OrderMode> _playerOrderMode;
1818
bool _macWarnBeforeQuit = true;
1919
std::vector<uint64> _accountsOrder;
@@ -26,5 +26,5 @@ index ad75558a52..e9fb514bff 100644
2626
= HistoryView::DoubleClickQuickAction();
2727
bool _translateButtonEnabled = false;
2828
--
29-
2.50.0
29+
2.51.0
3030

0 commit comments

Comments
 (0)