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,8 +89,11 @@ public class SmsSendJob extends SendJob {
|
||||
Recipient recipient = DatabaseFactory.getThreadDatabase(context).getRecipientForThreadId(threadId);
|
||||
|
||||
DatabaseFactory.getSmsDatabase(context).markAsSentFailed(messageId);
|
||||
|
||||
if (threadId != -1 && recipient != null) {
|
||||
MessageNotifier.notifyMessageDeliveryFailed(context, recipient, threadId);
|
||||
}
|
||||
}
|
||||
|
||||
private void deliver(SmsMessageRecord message)
|
||||
throws UndeliverableMessageException
|
||||
|
Loading…
x
Reference in New Issue
Block a user