mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Delay local updating proximity radius state reset
This commit is contained in:
parent
3ccf64e63f
commit
968e59077f
@ -194,10 +194,12 @@ public final class LocationViewController: ViewController {
|
|||||||
guard let strongSelf = self else {
|
guard let strongSelf = self else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
strongSelf.controllerNode.updateState { state in
|
Queue.mainQueue().after(0.5) {
|
||||||
var state = state
|
strongSelf.controllerNode.updateState { state in
|
||||||
state.cancellingProximityRadius = false
|
var state = state
|
||||||
return state
|
state.cancellingProximityRadius = false
|
||||||
|
return state
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -244,10 +246,12 @@ public final class LocationViewController: ViewController {
|
|||||||
guard let strongSelf = self else {
|
guard let strongSelf = self else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
strongSelf.controllerNode.updateState { state in
|
Queue.mainQueue().after(0.5) {
|
||||||
var state = state
|
strongSelf.controllerNode.updateState { state in
|
||||||
state.updatingProximityRadius = nil
|
var state = state
|
||||||
return state
|
state.updatingProximityRadius = nil
|
||||||
|
return state
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user