mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-08 16:38:34 +00:00
While testing GV2 without UUID, fail jobs that hit UuidRecipientError.
This commit is contained in:
parent
c5e7300df2
commit
28bd245b96
@ -193,7 +193,11 @@ public class Recipient {
|
|||||||
|
|
||||||
return resolved(id);
|
return resolved(id);
|
||||||
} else {
|
} else {
|
||||||
throw new UuidRecipientError();
|
if (!FeatureFlags.uuids() && FeatureFlags.groupsV2()) {
|
||||||
|
throw new RuntimeException(new UuidRecipientError());
|
||||||
|
} else {
|
||||||
|
throw new UuidRecipientError();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (e164 != null) {
|
} else if (e164 != null) {
|
||||||
Recipient recipient = resolved(db.getOrInsertFromE164(e164));
|
Recipient recipient = resolved(db.getOrInsertFromE164(e164));
|
||||||
@ -272,7 +276,11 @@ public class Recipient {
|
|||||||
if (possibleId.isPresent()) {
|
if (possibleId.isPresent()) {
|
||||||
id = possibleId.get();
|
id = possibleId.get();
|
||||||
} else {
|
} else {
|
||||||
throw new UuidRecipientError();
|
if (!FeatureFlags.uuids() && FeatureFlags.groupsV2()) {
|
||||||
|
throw new RuntimeException(new UuidRecipientError());
|
||||||
|
} else {
|
||||||
|
throw new UuidRecipientError();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (GroupId.isEncodedGroup(identifier)) {
|
} else if (GroupId.isEncodedGroup(identifier)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user