mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Always show VIEW DISCUSSION from comments.
This commit is contained in:
parent
a0c7697280
commit
0c07a015c6
1 changed files with 3 additions and 6 deletions
|
@ -2079,13 +2079,10 @@ Ui::MultiSlideTracker DetailsFiller::fillDiscussionButtons(
|
||||||
|
|
||||||
Ui::MultiSlideTracker tracker;
|
Ui::MultiSlideTracker tracker;
|
||||||
auto window = _controller->parentController();
|
auto window = _controller->parentController();
|
||||||
auto viewDiscussionVisible = rpl::combine(
|
auto viewDiscussionVisible = window->dialogsEntryStateValue(
|
||||||
_controller->wrapValue(),
|
) | rpl::map([=](const Dialogs::EntryState &state) {
|
||||||
window->dialogsEntryStateValue()
|
|
||||||
) | rpl::map([=](Wrap wrap, const Dialogs::EntryState &state) {
|
|
||||||
const auto history = state.key.history();
|
const auto history = state.key.history();
|
||||||
return (wrap == Wrap::Side)
|
return (state.section == Dialogs::EntryState::Section::Replies)
|
||||||
&& (state.section == Dialogs::EntryState::Section::Replies)
|
|
||||||
&& history
|
&& history
|
||||||
&& (history->peer == channel);
|
&& (history->peer == channel);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue