Account for deleted conversations in profile key send job.

fork-5.53.8
Alan Evans 2020-04-21 14:28:57 -03:00 zatwierdzone przez Greyson Parrelli
rodzic 3f555ce5e2
commit b80d460a8f
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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();