mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix bug causing crash in group recounting.
This commit is contained in:
parent
712b3f481c
commit
49def354bd
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue