From 0c07a015c652720edce49eae7341f700a423bc72 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 23 Dec 2024 22:46:29 +0400 Subject: [PATCH] Always show VIEW DISCUSSION from comments. --- .../SourceFiles/info/profile/info_profile_actions.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index db39f28dc7e7d2..a0bef34faa831b 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -2079,13 +2079,10 @@ Ui::MultiSlideTracker DetailsFiller::fillDiscussionButtons( Ui::MultiSlideTracker tracker; auto window = _controller->parentController(); - auto viewDiscussionVisible = rpl::combine( - _controller->wrapValue(), - window->dialogsEntryStateValue() - ) | rpl::map([=](Wrap wrap, const Dialogs::EntryState &state) { + auto viewDiscussionVisible = window->dialogsEntryStateValue( + ) | rpl::map([=](const Dialogs::EntryState &state) { const auto history = state.key.history(); - return (wrap == Wrap::Side) - && (state.section == Dialogs::EntryState::Section::Replies) + return (state.section == Dialogs::EntryState::Section::Replies) && history && (history->peer == channel); });