Skip to content

Commit

Permalink
Account for deleted conversations in profile key send job.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-signal authored and greyson-signal committed Apr 21, 2020
1 parent 3f555ce commit b80d460
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ protected void onRun() throws Exception {
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();
Expand Down

0 comments on commit b80d460

Please sign in to comment.