mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33: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,11 +1341,13 @@ void ParticipantsBoxController::rebuildChatParticipants(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const auto &user : participants) {
|
for (const auto &user : participants) {
|
||||||
if (auto row = createRow(user)) {
|
if (!delegate()->peerListFindRow(user->id.value)) {
|
||||||
const auto raw = row.get();
|
if (auto row = createRow(user)) {
|
||||||
delegate()->peerListAppendRow(std::move(row));
|
const auto raw = row.get();
|
||||||
if (_stories) {
|
delegate()->peerListAppendRow(std::move(row));
|
||||||
_stories->process(raw);
|
if (_stories) {
|
||||||
|
_stories->process(raw);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue