Add device location coordinate update throttling

This commit is contained in:
Ilya Laktyushin
2020-10-29 02:08:32 +04:00
parent 25d0696cd9
commit 3ccf64e63f
2 changed files with 24 additions and 9 deletions

View File

@@ -305,6 +305,8 @@ public final class LocationViewController: ViewController {
|> deliverOnMainQueue).start(next: { coordinate in
params.sendLiveLocation(TelegramMediaMap(coordinate: coordinate, liveBroadcastingTimeout: period))
})
strongSelf.controllerNode.showAll()
}
controller.setItemGroups([