kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix crash if recipient appears multiple times in group update description.
Without starting from start index, if the same recipient appears multiple times in the recipient list, this function will crash.fork-5.53.8
rodzic
ff8f9ca81a
commit
8c2db972cf
|
@ -871,7 +871,7 @@ final class GroupsV2UpdateMessageProducer {
|
|||
|
||||
for (RecipientId recipientId : recipientIds) {
|
||||
String placeholder = makePlaceholder(recipientId);
|
||||
int placeHolderStart = template.indexOf(placeholder);
|
||||
int placeHolderStart = template.indexOf(placeholder, startIndex);
|
||||
String beforeChunk = template.substring(startIndex, placeHolderStart);
|
||||
|
||||
builder.append(beforeChunk);
|
||||
|
|
Ładowanie…
Reference in New Issue