From b772697c59df80154aec4b4d03c53a74d686bab5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 3 Nov 2022 12:18:48 +0400 Subject: [PATCH] Fix crash on topic creation. --- .../SourceFiles/history/view/history_view_replies_section.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_replies_section.cpp b/Telegram/SourceFiles/history/view/history_view_replies_section.cpp index 955a83000c..c1855fc49b 100644 --- a/Telegram/SourceFiles/history/view/history_view_replies_section.cpp +++ b/Telegram/SourceFiles/history/view/history_view_replies_section.cpp @@ -1455,7 +1455,7 @@ void RepliesWidget::refreshUnreadCountBadge(std::optional count) { } void RepliesWidget::updatePinnedViewer() { - if (_scroll->isHidden() || !_topic) { + if (_scroll->isHidden() || !_topic || !_pinnedTracker) { return; } const auto visibleBottom = _scroll->scrollTop() + _scroll->height();