Improve top bars in forums, in narrow column.

This commit is contained in:
John Preston
2022-10-24 15:52:28 +04:00
parent 70e5f752ba
commit 72354f52d4
14 changed files with 171 additions and 51 deletions
@@ -976,12 +976,12 @@ void SessionController::setActiveChatEntry(Dialogs::RowDescriptor row) {
now->setFakeUnreadWhileOpened(true);
if (const auto channel = now->peer->asChannel()
; channel && !channel->isForum()) {
channel->flagsValue(
) | rpl::filter([=](const ChannelData::Flags::Change &update) {
using Flag = ChannelData::Flag;
return (update.diff & Flag::Forum)
&& (update.value & Flag::Forum);
}) | rpl::start_with_next([=] {
Data::PeerFlagValue(
channel,
ChannelData::Flag::Forum
) | rpl::filter(
rpl::mappers::_1
) | rpl::start_with_next([=] {
clearSectionStack(
{ anim::type::normal, anim::activation::background });
openForum(channel,