Fix forum without last topic opening.

This commit is contained in:
John Preston 2022-12-06 22:51:33 +04:00
parent f86afc9539
commit 6e75668e45

View file

@ -3325,17 +3325,6 @@ bool InnerWidget::chooseRow(
history->peer->id,
pressedTopicRootId,
};
} else if (!_controller->adaptive().isOneColumn()) {
const auto &recent = forum->recentTopics();
const auto topic = recent.empty()
? nullptr
: recent.front().get();
if (topic && !topic->chatListBadgesState().unread) {
chosen.message.fullId = {
history->peer->id,
topic->rootId(),
};
}
}
}
}