Skip to content

Commit

Permalink
Always show VIEW DISCUSSION from comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Dec 23, 2024
1 parent a0c7697 commit 0c07a01
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Telegram/SourceFiles/info/profile/info_profile_actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 0c07a01

Please sign in to comment.