mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix crash in topics disabling.
This commit is contained in:
@@ -1001,10 +1001,16 @@ void SessionController::showForum(
|
||||
}
|
||||
forum->destroyed(
|
||||
) | rpl::start_with_next([=, history = forum->history()] {
|
||||
const auto now = activeChatCurrent().owningHistory();
|
||||
const auto showHistory = !now || (now == history);
|
||||
closeForum();
|
||||
showPeerHistory(
|
||||
history,
|
||||
{ anim::type::normal, anim::activation::background });
|
||||
if (showHistory) {
|
||||
showPeerHistory(history, {
|
||||
SectionShow::Way::Backward,
|
||||
anim::type::normal,
|
||||
anim::activation::background,
|
||||
});
|
||||
}
|
||||
}, _shownForumLifetime);
|
||||
content()->showForum(forum, params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user