Account for deleted conversations in profile key send job.

This commit is contained in:
Alan Evans 2020-04-21 14:28:57 -03:00 committed by Greyson Parrelli
parent 3f555ce5e2
commit b80d460a8f

View file

@ -72,7 +72,8 @@ public class ProfileKeySendJob extends BaseJob {
Recipient conversationRecipient = DatabaseFactory.getThreadDatabase(context).getRecipientForThreadId(threadId);
if (conversationRecipient == null) {
throw new AssertionError("We have a thread but no recipient!");
Log.w(TAG, "Thread no longer present");
return;
}
List<Recipient> destinations = Stream.of(recipients).map(Recipient::resolved).toList();