Greyson Parrelli
81055e61a6
Update WorkManager to 1.0.0-alpha11.
2018-11-27 12:35:41 -08:00
Greyson Parrelli
a3411072ba
Remove MasterSecret job.
...
It's no longer necessary.
2018-11-21 01:55:30 -08:00
Greyson Parrelli
d93bfbf693
Prevent SendJobs from sending already-sent messages.
...
This is to guard against behavior WorkManager has where it may
re-enqueue a job that has already been completed (if, for instance, it
was preempted).
Fixes #8268
2018-11-14 16:20:55 -08:00
Greyson Parrelli
e7c00a3066
Fix issue where we may oversend SMS messages.
...
Because SMS sending is split over two jobs, there's no max retry limit
respected if we find out about the failure in SmsSentJob -- it's
requeued as a new job with a fresh attempt counter.
This commit carries a retry count between the two jobs. It also verifies
that we have service before attempting to send a message at all.
Relates to #8268
2018-11-13 15:07:33 -08:00
Greyson Parrelli
532431b0ad
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.
2018-10-31 08:19:33 -07:00
Greyson Parrelli
87e6aa48bb
Schedule jobs with WorkManager.
...
Should help solve most of our pressing targetSdk=26 migration issues.
2018-10-01 12:12:50 -07:00
Greyson Parrelli
d0db6aa509
Added more logging around message sending and attachment downloads.
2018-08-06 10:50:06 -04:00
Greyson Parrelli
43068e0613
Reduce usage of Log.w()
2018-08-06 10:50:06 -04:00
Greyson Parrelli
a498176043
Switch logs to use new Log class.
2018-08-06 10:50:06 -04:00
Greyson Parrelli
a50edc3d25
Keep retrying message sends for 24 hours.
...
Previously, we retried based on a count. Now we've added the ability to
keep retrying for a specified time, using exponential backoff to
throttle attempts.
2018-06-22 10:59:53 -07:00
Greyson Parrelli
42f1baaf61
Imported JobManager as a source dependency.
...
We have to make some changes, and it's gotten to the point where
maintaining it as a separate library is more hassle than it's worth,
especially with Google releasing WorkManager as the preferred job
scheduling library.
2018-06-22 10:59:53 -07:00
Moxie Marlinspike
e6a069af6d
Remove unnecessary body model
2018-02-01 18:29:09 -08:00
Moxie Marlinspike
f36b296e2e
Migrate from SQLite and ciphertext blobs to SQLCipher + KeyStore
2018-01-30 17:27:05 -08:00
Moxie Marlinspike
27e11e9627
Make sure we have SEND_SMS permission before sending an SMS
...
Fixes #7246
2017-12-05 11:35:15 -08:00
Moxie Marlinspike
375207f073
Switch MMS groups to use the group database infrastructure
...
Eliminate the concept of 'Recipients' (plural). There is now just
a 'Recipient', which contains an Address that is either an individual
or a group ID.
MMS groups now exist as part of the group database, just like push
groups.
// FREEBIE
2017-08-28 10:30:50 -07:00
Moxie Marlinspike
422b4c345b
Catch IllegalArgumentException thrown internally on some devices
...
// FREEBIE
2017-08-10 12:17:05 -07:00
Moxie Marlinspike
737810475e
Remove the Canonical Address Database
...
This was a holdover from Signal's origins as a pure SMS app.
It causes problems, depends on undefined device specific behavior,
and should no longer be necessary now that we have all the
information we need to E164 all numbers.
// FREEBIE
2017-07-31 12:02:29 -07:00
Moxie Marlinspike
cdf3a849e9
Reduce DB updates on send path, move support SDK up to 24
...
// FREEBIE
2017-01-02 17:17:48 -08:00
Moxie Marlinspike
6da86e482d
Support for dual-sim SMS/MMS functionality
...
Allow source selection for sending SMS/MMS, and display the
SIM that received SMS/MMS.
Fixes #555
Closes #5199
// FREEBIE
2016-02-09 16:53:15 -08:00
Colin Snover
50c432aaf0
Strip separators prior to validating non-email SMS recipients
...
Refs #1516 . Refs #3099 . Refs #4833 .
Closes #4861
2015-12-11 23:11:35 -08:00
Moxie Marlinspike
bde838d35a
Let's take this SMS number cleaning thing to its logical extreme
...
Fixes #4833
// FREEBIE
2015-12-10 18:49:58 -08:00
Moxie Marlinspike
371ef3ce95
Strip whitespace in addition to parentheses for outgoing SMS
...
Fixes #4833
// FREEBIE
2015-12-10 05:04:03 -08:00
Stefan Seide
e808ae0ddc
remove brackets from recipient numbers as not allowed for dialing
...
Closes #3450
2015-11-05 10:07:52 -08:00
Moxie Marlinspike
004a87eba9
Lower SMS retry count to 15
...
Closes #4296
// FREEBIE
2015-11-04 17:56:20 -08:00
Moxie Marlinspike
cc65fab226
Update message details activity display when resending SMS/MMS
...
// FREEBIE
2015-03-13 11:29:44 -07:00
Moxie Marlinspike
a4e18c515c
Remove encrypted SMS transport, simplify transport options.
...
Closes #2647
// FREEBIE
2015-03-12 17:53:38 -07:00
Moxie Marlinspike
a0ed0842a0
Add expiration check on build freshness.
...
// FREEBIE
2015-01-12 09:12:10 -08:00
Moxie Marlinspike
6e85677c52
Support 'WiFi calling' devices.
...
// FREEBIE
Fixes #2254
Fixes #2240
Fixes #2160
Closes #2263
2014-12-29 12:51:39 -08:00
Moxie Marlinspike
0d06d50a65
Let's have JobManager only deal with checked exceptions.
...
Also, switch to Builder for JobManager construction.
2014-11-12 15:29:58 -08:00
Moxie Marlinspike
9a6f65988f
Add support for dependency injection, and accompanying tests.
2014-11-12 15:29:58 -08:00
Moxie Marlinspike
cafe03a70a
Transition the outbound pipeline to JobManager jobs.
2014-11-12 15:26:25 -08:00
Moxie Marlinspike
a3f1d9cdfd
Beginning of libtextsecure refactor.
...
1) Break out appropriate components.
2) Switch the incoming pipeline from SendReceiveService to
the JobManager.
2014-11-12 15:21:32 -08:00