mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Delay local updating proximity radius state reset
This commit is contained in:
parent
3ccf64e63f
commit
968e59077f
1 changed files with 12 additions and 8 deletions
|
|
@ -194,10 +194,12 @@ public final class LocationViewController: ViewController {
|
|||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
strongSelf.controllerNode.updateState { state in
|
||||
var state = state
|
||||
state.cancellingProximityRadius = false
|
||||
return state
|
||||
Queue.mainQueue().after(0.5) {
|
||||
strongSelf.controllerNode.updateState { state in
|
||||
var state = state
|
||||
state.cancellingProximityRadius = false
|
||||
return state
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
@ -244,10 +246,12 @@ public final class LocationViewController: ViewController {
|
|||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
strongSelf.controllerNode.updateState { state in
|
||||
var state = state
|
||||
state.updatingProximityRadius = nil
|
||||
return state
|
||||
Queue.mainQueue().after(0.5) {
|
||||
strongSelf.controllerNode.updateState { state in
|
||||
var state = state
|
||||
state.updatingProximityRadius = nil
|
||||
return state
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue