1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-31 02:54:57 +01:00

通知チェック時のインスタンス情報取得部分を変更

This commit is contained in:
tateisu 2019-10-05 16:22:41 +09:00
parent 815d3efe6f
commit f1a3ba3ea2

View File

@ -1083,13 +1083,19 @@ class PollingWorker private constructor(contextArg : Context) {
if(! account.isConfirmed) return
client.account = account
val (_, instance) = TootInstance.get(client)
if(instance == null) return
val wps = PushSubscriptionHelper(context, account)
if(wps.flags != 0) {
job.bPollingRequired.set(true)
val (instanceResult, instance) = TootInstance.get(client)
if(instance == null){
if(instanceResult != null) log.e("${instanceResult.error} ${instanceResult.requestInfo}".trim())
return
}
if(job.isJobCancelled) return
}
wps.updateSubscription(client)