Commit e192f489 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Remove message from repository when got to blackhole

parent c5bf17ac
...@@ -66,6 +66,7 @@ class MessageService : JobService() { ...@@ -66,6 +66,7 @@ class MessageService : JobService() {
if (ex is IllegalStateException) { if (ex is IllegalStateException) {
Timber.d(ex, "Probably a read-only problem...") Timber.d(ex, "Probably a read-only problem...")
// TODO: For now we are only going to reschedule when api is fixed. // TODO: For now we are only going to reschedule when api is fixed.
messageRepository.removeById(message.id)
jobFinished(params, false) jobFinished(params, false)
} else { } else {
// some other error // some other error
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment