2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +00:00

Add jump-to-topic panel in View as Messages.

This commit is contained in:
John Preston
2022-12-02 18:19:56 +04:00
parent 8281990bb8
commit a4e4681835
25 changed files with 470 additions and 150 deletions

View File

@@ -571,8 +571,7 @@ void InnerWidget::paintEvent(QPaintEvent *e) {
bool mayBeActive) {
const auto key = row->key();
const auto active = mayBeActive && (activeEntry.key == key);
const auto forum = key.history()
&& key.history()->peer->isForum();
const auto forum = key.history() && key.history()->isForum();
if (forum && !_topicJumpCache) {
_topicJumpCache = std::make_unique<Ui::TopicJumpCache>();
}