commit f29da86325f38b2eff0b15ac82a67489e358cfc6
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Mon Feb 6 17:43:22 2023 +0100
Updated GCC 13 patch.
telegram-desktop-gcc13-build-fix.patch | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/telegram-desktop-gcc13-build-fix.patch
b/telegram-desktop-gcc13-build-fix.patch
index d60d781..08da6d0 100644
--- a/telegram-desktop-gcc13-build-fix.patch
+++ b/telegram-desktop-gcc13-build-fix.patch
@@ -1,13 +1,36 @@
-From ccef5acc51d2059f33d3e35f7972351b4221cd9f Mon Sep 17 00:00:00 2001
+From a6cb672879541bf4fa9a06f176e43c9bc4ed9b31 Mon Sep 17 00:00:00 2001
From: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Mon, 6 Feb 2023 11:23:57 +0100
Subject: [PATCH] Fixed build with GCC 13.
Signed-off-by: Vitaly Zaitsev <vitaly(a)easycoding.org>
---
+ .../boxes/peers/edit_peer_permissions_box.cpp | 4 ++--
.../SourceFiles/history/view/history_view_list_widget.h | 9 +++++----
- 1 file changed, 5 insertions(+), 4 deletions(-)
+ 2 files changed, 7 insertions(+), 6 deletions(-)
+diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp
b/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp
+index b314d30091344..0c537478cca75 100644
+--- a/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp
++++ b/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp
+@@ -79,7 +79,7 @@ struct NestedRestrictionLabels {
+ second.erase(
+ ranges::remove(
+ second,
+- Flag::CreateTopics,
++ Flag::CreateTopics | Flag(),
+ &RestrictionLabel::flags),
+ end(second));
+ }
+@@ -1002,7 +1002,7 @@ std::vector<AdminRightLabel> AdminRightLabels(
+ result.erase(
+ ranges::remove(
+ result,
+- Flag::ManageTopics,
++ Flag::ManageTopics | Flag(),
+ &AdminRightLabel::flags),
+ end(result));
+ }
diff --git a/Telegram/SourceFiles/history/view/history_view_list_widget.h
b/Telegram/SourceFiles/history/view/history_view_list_widget.h
index 77c51f7508246..c8ad5f1fcd58a 100644
--- a/Telegram/SourceFiles/history/view/history_view_list_widget.h
Show replies by date