mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 10:58:14 +00:00
Remove UuidRecipientError.
This commit is contained in:
@@ -2737,7 +2737,4 @@ public class RecipientDatabase extends Database {
|
|||||||
this.neededInsert = neededInsert;
|
this.neededInsert = neededInsert;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class UuidRecipientError extends AssertionError {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -221,7 +221,7 @@ public class Recipient {
|
|||||||
RecipientId id = null;
|
RecipientId id = null;
|
||||||
|
|
||||||
if (UuidUtil.isUuid(identifier)) {
|
if (UuidUtil.isUuid(identifier)) {
|
||||||
throw new UuidRecipientError();
|
throw new AssertionError("UUIDs are not valid system contact identifiers!");
|
||||||
} else if (NumberUtil.isValidEmail(identifier)) {
|
} else if (NumberUtil.isValidEmail(identifier)) {
|
||||||
id = db.getOrInsertFromEmail(identifier);
|
id = db.getOrInsertFromEmail(identifier);
|
||||||
} else {
|
} else {
|
||||||
@@ -875,7 +875,4 @@ public class Recipient {
|
|||||||
|
|
||||||
private static class MissingAddressError extends AssertionError {
|
private static class MissingAddressError extends AssertionError {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class UuidRecipientError extends AssertionError {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user