mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-27 20:24:32 +01:00
Run PushProcessMessageJobs in parallel.
This commit is contained in:
committed by
Alex Hart
parent
ed33e048ad
commit
f099c3591c
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user