From 49def354bd0c05842e74c87e6a02c6d45de1e90d Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 17 Dec 2017 12:33:08 +0400 Subject: [PATCH] Fix bug causing crash in group recounting. --- Telegram/SourceFiles/history/history_item.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index fe5db1e24..0ff81dfc6 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -1200,6 +1200,7 @@ void HistoryItem::makeGroupLeader( const auto leaderChanged = (group->leader != this); if (leaderChanged) { + group->leader = this; _flags &= ~MTPDmessage_ClientFlag::f_hidden_by_group; setPendingInitDimensions(); }