Fix bug causing crash in group recounting.

This commit is contained in:
John Preston 2017-12-17 12:33:08 +04:00
parent 712b3f481c
commit 49def354bd

View File

@ -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();
}