Fix UD indicators for sent transcripts.

This commit is contained in:
Greyson Parrelli
2020-04-09 17:45:48 -04:00
parent 7bf090fdab
commit a471ffa6d8
2 changed files with 26 additions and 2 deletions

View File

@@ -447,6 +447,17 @@ public class Recipient {
return Optional.fromNullable(e164).or(Optional.fromNullable(email));
}
public @NonNull UUID requireUuid() {
UUID resolved = resolving ? resolve().uuid : uuid;
if (resolved == null) {
throw new MissingAddressError();
}
return resolved;
}
public @NonNull String requireE164() {
String resolved = resolving ? resolve().e164 : e164;