kopia lustrzana https://github.com/ryukoposting/Signal-Android
While testing GV2 without UUID, fail jobs that hit UuidRecipientError.
rodzic
c5e7300df2
commit
28bd245b96
|
@ -192,9 +192,13 @@ public class Recipient {
|
||||||
}
|
}
|
||||||
|
|
||||||
return resolved(id);
|
return resolved(id);
|
||||||
|
} else {
|
||||||
|
if (!FeatureFlags.uuids() && FeatureFlags.groupsV2()) {
|
||||||
|
throw new RuntimeException(new UuidRecipientError());
|
||||||
} else {
|
} else {
|
||||||
throw new UuidRecipientError();
|
throw new UuidRecipientError();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (e164 != null) {
|
} else if (e164 != null) {
|
||||||
Recipient recipient = resolved(db.getOrInsertFromE164(e164));
|
Recipient recipient = resolved(db.getOrInsertFromE164(e164));
|
||||||
|
|
||||||
|
@ -271,10 +275,14 @@ public class Recipient {
|
||||||
|
|
||||||
if (possibleId.isPresent()) {
|
if (possibleId.isPresent()) {
|
||||||
id = possibleId.get();
|
id = possibleId.get();
|
||||||
|
} else {
|
||||||
|
if (!FeatureFlags.uuids() && FeatureFlags.groupsV2()) {
|
||||||
|
throw new RuntimeException(new UuidRecipientError());
|
||||||
} else {
|
} else {
|
||||||
throw new UuidRecipientError();
|
throw new UuidRecipientError();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (GroupId.isEncodedGroup(identifier)) {
|
} else if (GroupId.isEncodedGroup(identifier)) {
|
||||||
id = db.getOrInsertFromGroupId(GroupId.parseOrThrow(identifier));
|
id = db.getOrInsertFromGroupId(GroupId.parseOrThrow(identifier));
|
||||||
} else if (NumberUtil.isValidEmail(identifier)) {
|
} else if (NumberUtil.isValidEmail(identifier)) {
|
||||||
|
|
Ładowanie…
Reference in New Issue