Run PushProcessMessageJobs in parallel.

This commit is contained in:
Greyson Parrelli
2020-03-06 18:51:33 -05:00
committed by Alex Hart
parent ed33e048ad
commit f099c3591c
8 changed files with 236 additions and 67 deletions

View File

@@ -14,6 +14,7 @@ import org.thoughtcrime.securesms.dependencies.ApplicationDependencies;
import org.thoughtcrime.securesms.logging.Log;
import org.thoughtcrime.securesms.util.DelimiterUtil;
import org.thoughtcrime.securesms.util.Util;
import org.whispersystems.signalservice.api.push.SignalServiceAddress;
import java.util.ArrayList;
import java.util.List;
@@ -46,6 +47,11 @@ public class RecipientId implements Parcelable, Comparable<RecipientId> {
}
}
@AnyThread
public static @NonNull RecipientId from(@NonNull SignalServiceAddress address) {
return from(address.getUuid().orNull(), address.getNumber().orNull());
}
/**
* Always supply both {@param uuid} and {@param e164} if you have both.
*/