mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Quiet down auth check job.
This commit is contained in:
committed by
Greyson Parrelli
parent
16c8b88f0f
commit
57a70c3085
@@ -162,6 +162,13 @@ class InAppPaymentTable(context: Context, databaseHelper: SignalDatabase) : Data
|
||||
AppDependencies.databaseObserver.notifyInAppPaymentsObservers(inAppPayment)
|
||||
}
|
||||
|
||||
fun hasWaitingForAuth(): Boolean {
|
||||
return readableDatabase
|
||||
.exists(TABLE_NAME)
|
||||
.where("$STATE = ?", State.serialize(State.WAITING_FOR_AUTHORIZATION))
|
||||
.run()
|
||||
}
|
||||
|
||||
fun getAllWaitingForAuth(): List<InAppPayment> {
|
||||
return readableDatabase.select()
|
||||
.from(TABLE_NAME)
|
||||
|
||||
Reference in New Issue
Block a user