mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fix possible crash in legacy group participants.
This commit is contained in:
parent
d60d80ba63
commit
93457c8ea3
1 changed files with 7 additions and 5 deletions
|
@ -1341,6 +1341,7 @@ void ParticipantsBoxController::rebuildChatParticipants(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const auto &user : participants) {
|
for (const auto &user : participants) {
|
||||||
|
if (!delegate()->peerListFindRow(user->id.value)) {
|
||||||
if (auto row = createRow(user)) {
|
if (auto row = createRow(user)) {
|
||||||
const auto raw = row.get();
|
const auto raw = row.get();
|
||||||
delegate()->peerListAppendRow(std::move(row));
|
delegate()->peerListAppendRow(std::move(row));
|
||||||
|
@ -1349,6 +1350,7 @@ void ParticipantsBoxController::rebuildChatParticipants(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
_onlineSorter->sort();
|
_onlineSorter->sort();
|
||||||
|
|
||||||
refreshRows();
|
refreshRows();
|
||||||
|
|
Loading…
Add table
Reference in a new issue