mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Fix issue when single user leaves ParticipantCollection.
This commit is contained in:
@@ -62,7 +62,7 @@ public class ParticipantCollection {
|
||||
.indexOf(oldId);
|
||||
|
||||
if (newIndex != -1 && newIndex != i) {
|
||||
Collections.swap(newParticipants, newIndex, i);
|
||||
Collections.swap(newParticipants, newIndex, Math.min(i, newParticipants.size() - 1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user