mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 13:57:43 +00:00
Fix NPE when outgoing media message is deleted.
// FREEBIE
This commit is contained in:
@@ -82,6 +82,8 @@ public abstract class PushSendJob extends SendJob {
|
||||
long threadId = DatabaseFactory.getMmsDatabase(context).getThreadIdForMessage(messageId);
|
||||
Recipients recipients = DatabaseFactory.getThreadDatabase(context).getRecipientsForThreadId(threadId);
|
||||
|
||||
MessageNotifier.notifyMessageDeliveryFailed(context, recipients, threadId);
|
||||
if (threadId != -1 && recipients != null) {
|
||||
MessageNotifier.notifyMessageDeliveryFailed(context, recipients, threadId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user