Prevent crash when opening conversation with unregistered UUID-only recipient.

This commit is contained in:
Greyson Parrelli
2021-05-03 13:45:53 -04:00
committed by Cody Henthorne
parent 129effd0ec
commit add65cf592
2 changed files with 23 additions and 12 deletions

View File

@@ -650,6 +650,10 @@ public class Recipient {
return getUuid().isPresent();
}
public boolean isUuidOnly() {
return hasUuid() && !hasSmsAddress();
}
public @NonNull GroupId requireGroupId() {
GroupId resolved = resolving ? resolve().groupId : groupId;