mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix db access in RemoteMegaphoneRepository.
This commit is contained in:
committed by
Cody Henthorne
parent
7eac9ce1f4
commit
36bfd19bcf
@@ -40,7 +40,9 @@ object RemoteMegaphoneRepository {
|
||||
|
||||
private val snooze: Action = Action { _, controller, remote ->
|
||||
controller.onMegaphoneSnooze(Megaphones.Event.REMOTE_MEGAPHONE)
|
||||
db.snooze(remote)
|
||||
SignalExecutors.BOUNDED_IO.execute {
|
||||
db.snooze(remote)
|
||||
}
|
||||
}
|
||||
|
||||
private val finish: Action = Action { context, controller, remote ->
|
||||
@@ -48,7 +50,9 @@ object RemoteMegaphoneRepository {
|
||||
BlobProvider.getInstance().delete(context, remote.imageUri)
|
||||
}
|
||||
controller.onMegaphoneSnooze(Megaphones.Event.REMOTE_MEGAPHONE)
|
||||
db.markFinished(remote.uuid)
|
||||
SignalExecutors.BOUNDED_IO.execute {
|
||||
db.markFinished(remote.uuid)
|
||||
}
|
||||
}
|
||||
|
||||
private val donate: Action = Action { context, controller, remote ->
|
||||
|
||||
Reference in New Issue
Block a user