mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Payments.
Co-authored-by: Alan Evans <alan@signal.org> Co-authored-by: Alex Hart <alex@signal.org> Co-authored-by: Cody Henthorne <cody@signal.org>
This commit is contained in:
@@ -47,6 +47,10 @@ public class RecipientId implements Parcelable, Comparable<RecipientId> {
|
||||
}
|
||||
}
|
||||
|
||||
public static @Nullable RecipientId fromNullable(@Nullable String id) {
|
||||
return id != null ? from(id) : null;
|
||||
}
|
||||
|
||||
@AnyThread
|
||||
public static @NonNull RecipientId from(@NonNull SignalServiceAddress address) {
|
||||
return from(address.getUuid().orNull(), address.getNumber().orNull(), false);
|
||||
|
||||
Reference in New Issue
Block a user