Show Group V2 invited member dialog explaining invites on new group and add to group.

This commit is contained in:
Alan Evans
2020-07-16 17:50:46 -03:00
committed by Greyson Parrelli
parent ae2b6e4d7a
commit a59e214317
16 changed files with 293 additions and 89 deletions

View File

@@ -47,6 +47,7 @@ import org.whispersystems.signalservice.api.push.SignalServiceAddress;
import org.whispersystems.signalservice.api.util.UuidUtil;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
@@ -125,6 +126,17 @@ public class Recipient {
return live(id).resolve();
}
@WorkerThread
public static @NonNull List<Recipient> resolvedList(@NonNull Collection<RecipientId> ids) {
List<Recipient> recipients = new ArrayList<>(ids.size());
for (RecipientId recipientId : ids) {
recipients.add(resolved(recipientId));
}
return recipients;
}
/**
* Returns a fully-populated {@link Recipient} and associates it with the provided username.
*/