From fb0b1af056565ea7b1ff816a1f4280427179b76a Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Thu, 4 Nov 2021 12:17:19 -0400 Subject: [PATCH] Allow lazy creation of Recipient.self() --- .../thoughtcrime/securesms/recipients/LiveRecipientCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/recipients/LiveRecipientCache.java b/app/src/main/java/org/thoughtcrime/securesms/recipients/LiveRecipientCache.java index ea4282ce9..ae4421e5a 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/recipients/LiveRecipientCache.java +++ b/app/src/main/java/org/thoughtcrime/securesms/recipients/LiveRecipientCache.java @@ -165,7 +165,7 @@ public final class LiveRecipientCache { } if (selfId == null) { - throw new MissingRecipientException(null); + selfId = recipientDatabase.getAndPossiblyMerge(localAci, localE164, false); } synchronized (localRecipientId) {