mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-03 10:39:30 +00:00
Fix possible crash in legacy group participants.
This commit is contained in:
@@ -1341,11 +1341,13 @@ void ParticipantsBoxController::rebuildChatParticipants(
|
||||
}
|
||||
}
|
||||
for (const auto &user : participants) {
|
||||
if (auto row = createRow(user)) {
|
||||
const auto raw = row.get();
|
||||
delegate()->peerListAppendRow(std::move(row));
|
||||
if (_stories) {
|
||||
_stories->process(raw);
|
||||
if (!delegate()->peerListFindRow(user->id.value)) {
|
||||
if (auto row = createRow(user)) {
|
||||
const auto raw = row.get();
|
||||
delegate()->peerListAppendRow(std::move(row));
|
||||
if (_stories) {
|
||||
_stories->process(raw);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user