Fix crash on topic creation.

This commit is contained in:
John Preston 2022-11-03 12:18:48 +04:00
parent a088791752
commit b772697c59

View file

@ -1455,7 +1455,7 @@ void RepliesWidget::refreshUnreadCountBadge(std::optional<int> count) {
} }
void RepliesWidget::updatePinnedViewer() { void RepliesWidget::updatePinnedViewer() {
if (_scroll->isHidden() || !_topic) { if (_scroll->isHidden() || !_topic || !_pinnedTracker) {
return; return;
} }
const auto visibleBottom = _scroll->scrollTop() + _scroll->height(); const auto visibleBottom = _scroll->scrollTop() + _scroll->height();