From bdeaf4f27af215585d609e46256b568ecc6130c4 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 19 Jan 2024 21:29:11 +0400 Subject: [PATCH] Fix crash in search in group messages from user. Fixes #27387. --- Telegram/SourceFiles/boxes/peers/add_participants_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp index d6ddebfa9..d17213ffb 100644 --- a/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp @@ -296,6 +296,8 @@ void AddParticipantsBoxController::itemDeselectedHook( void AddParticipantsBoxController::prepareViewHook() { updateTitle(); + + TrackPremiumRequiredChanges(this, lifetime()); } int AddParticipantsBoxController::alreadyInCount() const { @@ -713,8 +715,6 @@ void AddSpecialBoxController::prepare() { loadMoreRows(); } delegate()->peerListRefreshRows(); - - TrackPremiumRequiredChanges(this, lifetime()); } void AddSpecialBoxController::prepareChatRows(not_null chat) {