mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 01:18:34 +00:00
Update SMS/MMS as sending when retrying failed send.
This was only impacting SMS/MMS as Push already reset the status.
This commit is contained in:
parent
4a455ff958
commit
fb600e9829
@ -113,6 +113,11 @@ public final class MmsSendJob extends SendJob {
|
||||
return KEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAdded() {
|
||||
DatabaseFactory.getMmsDatabase(context).markAsSending(messageId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSend() throws MmsException, NoSuchMessageException, IOException {
|
||||
MmsDatabase database = DatabaseFactory.getMmsDatabase(context);
|
||||
|
@ -65,6 +65,11 @@ public class SmsSendJob extends SendJob {
|
||||
return KEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAdded() {
|
||||
DatabaseFactory.getSmsDatabase(context).markAsSending(messageId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSend() throws NoSuchMessageException, TooManyRetriesException {
|
||||
if (runAttempt >= MAX_ATTEMPTS) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user