kopia lustrzana https://github.com/ryukoposting/Signal-Android
Account for deleted conversations in profile key send job.
rodzic
3f555ce5e2
commit
b80d460a8f
|
@ -72,7 +72,8 @@ public class ProfileKeySendJob extends BaseJob {
|
||||||
Recipient conversationRecipient = DatabaseFactory.getThreadDatabase(context).getRecipientForThreadId(threadId);
|
Recipient conversationRecipient = DatabaseFactory.getThreadDatabase(context).getRecipientForThreadId(threadId);
|
||||||
|
|
||||||
if (conversationRecipient == null) {
|
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();
|
List<Recipient> destinations = Stream.of(recipients).map(Recipient::resolved).toList();
|
||||||
|
|
Ładowanie…
Reference in New Issue