mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-28 11:30:54 +00:00
Fix a crash in topic deletion.
This commit is contained in:
parent
df8176d671
commit
77078f704c
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user