From 4c89938831bcce03fae22081809e53a47bdee31b Mon Sep 17 00:00:00 2001 From: Vadim Misbakh-Soloviov Date: Mon, 7 Oct 2024 18:47:59 +0700 Subject: [PATCH] net-im/telegram-desktop: bump Signed-off-by: Vadim Misbakh-Soloviov --- .../option-to-disable-stories.patch | 4 ++-- .../saving-restrictions.patch | 15 --------------- ...5.5.8.ebuild => telegram-desktop-5.6.0.ebuild} | 0 3 files changed, 2 insertions(+), 17 deletions(-) rename net-im/telegram-desktop/{telegram-desktop-5.5.8.ebuild => telegram-desktop-5.6.0.ebuild} (100%) diff --git a/net-im/telegram-desktop/files/patches/0/conditional/tdesktop_patches_allow-disable-stories/option-to-disable-stories.patch b/net-im/telegram-desktop/files/patches/0/conditional/tdesktop_patches_allow-disable-stories/option-to-disable-stories.patch index a0c59ae16..6b8aa2527 100644 --- a/net-im/telegram-desktop/files/patches/0/conditional/tdesktop_patches_allow-disable-stories/option-to-disable-stories.patch +++ b/net-im/telegram-desktop/files/patches/0/conditional/tdesktop_patches_allow-disable-stories/option-to-disable-stories.patch @@ -5,11 +5,11 @@ index d3baee3..04ee5a4 100644 @@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "data/data_stories.h" - #include "api/api_report.h" -+#include "base/options.h" #include "base/unixtime.h" ++#include "base/options.h" #include "apiwrap.h" #include "core/application.h" + #include "data/data_changes.h" @@ -47,6 +48,14 @@ constexpr auto kPollingViewsPerPage = Story::kRecentViewersMax; using UpdateFlag = StoryUpdate::Flag; diff --git a/net-im/telegram-desktop/files/patches/0/conditional/tdesktop_patches_ignore-restrictions/saving-restrictions.patch b/net-im/telegram-desktop/files/patches/0/conditional/tdesktop_patches_ignore-restrictions/saving-restrictions.patch index 5f6d9e146..a3c8079d1 100644 --- a/net-im/telegram-desktop/files/patches/0/conditional/tdesktop_patches_ignore-restrictions/saving-restrictions.patch +++ b/net-im/telegram-desktop/files/patches/0/conditional/tdesktop_patches_ignore-restrictions/saving-restrictions.patch @@ -1,18 +1,3 @@ -diff --git a/Telegram/SourceFiles/core/click_handler_types.cpp b/Telegram/SourceFiles/core/click_handler_types.cpp -index e3bbba7..5bc409d 100644 ---- a/Telegram/SourceFiles/core/click_handler_types.cpp -+++ b/Telegram/SourceFiles/core/click_handler_types.cpp -@@ -333,9 +333,7 @@ void MonospaceClickHandler::onClick(ClickContext context) const { - if (const auto controller = my.sessionWindow.get()) { - auto &data = controller->session().data(); - const auto item = data.message(my.itemId); -- const auto hasCopyRestriction = item -- && (!item->history()->peer->allowsForwarding() -- || item->forbidsForward()); -+ const auto hasCopyRestriction = false; - if (hasCopyRestriction) { - controller->showToast(item->history()->peer->isBroadcast() - ? tr::lng_error_nocopy_channel(tr::now) diff --git a/Telegram/SourceFiles/data/data_story.cpp b/Telegram/SourceFiles/data/data_story.cpp index d5faa43..c6b26dc 100644 --- a/Telegram/SourceFiles/data/data_story.cpp diff --git a/net-im/telegram-desktop/telegram-desktop-5.5.8.ebuild b/net-im/telegram-desktop/telegram-desktop-5.6.0.ebuild similarity index 100% rename from net-im/telegram-desktop/telegram-desktop-5.5.8.ebuild rename to net-im/telegram-desktop/telegram-desktop-5.6.0.ebuild