mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 16:45:12 +00:00
Fix a crash in topic deletion.
This commit is contained in:
@@ -1749,7 +1749,15 @@ void SessionController::showSection(
|
||||
}
|
||||
|
||||
void SessionController::showBackFromStack(const SectionShow ¶ms) {
|
||||
content()->showBackFromStack(params);
|
||||
const auto bad = [&] {
|
||||
// If we show a currently-being-destroyed topic, then
|
||||
// skip it and show back one more.
|
||||
const auto topic = _activeChatEntry.current().key.topic();
|
||||
return topic && topic->forum()->topicDeleted(topic->rootId());
|
||||
};
|
||||
do {
|
||||
content()->showBackFromStack(params);
|
||||
} while (bad());
|
||||
}
|
||||
|
||||
void SessionController::showSpecialLayer(
|
||||
|
Reference in New Issue
Block a user