mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-31 02:54:57 +01:00
通知チェック時のインスタンス情報取得部分を変更
This commit is contained in:
parent
815d3efe6f
commit
f1a3ba3ea2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user