mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Handle forum-non_forum changes in realtime.
This commit is contained in:
@@ -893,12 +893,8 @@ void SessionController::openForum(
|
||||
closeFolder();
|
||||
_openedForum = forum.get();
|
||||
if (_openedForum.current() == forum) {
|
||||
forum->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([=] {
|
||||
forum->forum()->destroyed(
|
||||
) | rpl::start_with_next([=] {
|
||||
closeForum();
|
||||
showPeerHistory(
|
||||
forum,
|
||||
|
Reference in New Issue
Block a user