mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Guard against notifying for errors on non-existent SMS threads.
All of the other send jobs do this already, just didn't do it here.
This commit is contained in:
parent
cfeee25488
commit
532431b0ad
@ -89,7 +89,10 @@ public class SmsSendJob extends SendJob {
|
|||||||
Recipient recipient = DatabaseFactory.getThreadDatabase(context).getRecipientForThreadId(threadId);
|
Recipient recipient = DatabaseFactory.getThreadDatabase(context).getRecipientForThreadId(threadId);
|
||||||
|
|
||||||
DatabaseFactory.getSmsDatabase(context).markAsSentFailed(messageId);
|
DatabaseFactory.getSmsDatabase(context).markAsSentFailed(messageId);
|
||||||
MessageNotifier.notifyMessageDeliveryFailed(context, recipient, threadId);
|
|
||||||
|
if (threadId != -1 && recipient != null) {
|
||||||
|
MessageNotifier.notifyMessageDeliveryFailed(context, recipient, threadId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void deliver(SmsMessageRecord message)
|
private void deliver(SmsMessageRecord message)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user