mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-16 07:22:20 +00:00
Handle UUID-only recipients and merging.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
package org.whispersystems.signalservice.api.push;
|
||||
|
||||
import org.whispersystems.libsignal.util.guava.Optional;
|
||||
import org.whispersystems.signalservice.api.util.OptionalUtil;
|
||||
import org.whispersystems.signalservice.api.util.UuidUtil;
|
||||
|
||||
import java.util.UUID;
|
||||
@@ -43,8 +44,7 @@ public class SignalServiceAddress {
|
||||
* Convenience constructor that will consider a UUID/E164 string absent if it is null or empty.
|
||||
*/
|
||||
public SignalServiceAddress(UUID uuid, String e164) {
|
||||
this(Optional.fromNullable(uuid),
|
||||
e164 != null && !e164.isEmpty() ? Optional.of(e164) : Optional.<String>absent());
|
||||
this(Optional.fromNullable(uuid), OptionalUtil.absentIfEmpty(e164));
|
||||
}
|
||||
|
||||
public SignalServiceAddress(Optional<UUID> uuid, Optional<String> e164) {
|
||||
|
||||
Reference in New Issue
Block a user