mirror of https://github.com/procxx/kepka.git
Fix bug causing crash in group recounting.
This commit is contained in:
parent
712b3f481c
commit
49def354bd
|
@ -1200,6 +1200,7 @@ void HistoryItem::makeGroupLeader(
|
||||||
|
|
||||||
const auto leaderChanged = (group->leader != this);
|
const auto leaderChanged = (group->leader != this);
|
||||||
if (leaderChanged) {
|
if (leaderChanged) {
|
||||||
|
group->leader = this;
|
||||||
_flags &= ~MTPDmessage_ClientFlag::f_hidden_by_group;
|
_flags &= ~MTPDmessage_ClientFlag::f_hidden_by_group;
|
||||||
setPendingInitDimensions();
|
setPendingInitDimensions();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue