Add back proper support for unknown recipients.

Fixes #9085
This commit is contained in:
Greyson Parrelli
2019-10-08 19:14:52 -07:00
parent 36286da9bd
commit 33334f80c3
12 changed files with 66 additions and 14 deletions

View File

@@ -117,6 +117,10 @@ public class ThreadDatabase extends Database {
}
private long createThreadForRecipient(@NonNull RecipientId recipientId, boolean group, int distributionType) {
if (recipientId.isUnknown()) {
throw new AssertionError("Cannot create a thread for an unknown recipient!");
}
ContentValues contentValues = new ContentValues(4);
long date = System.currentTimeMillis();