mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
@@ -827,7 +827,13 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
|
||||
|> mapToSignal { context -> Signal<AccountRecordId?, NoError> in
|
||||
if let context = context, let liveLocationManager = context.context.liveLocationManager {
|
||||
let accountId = context.context.account.id
|
||||
return liveLocationManager.isPolling
|
||||
return combineLatest(queue: .mainQueue(),
|
||||
liveLocationManager.isPolling,
|
||||
liveLocationManager.hasBackgroundTasks
|
||||
)
|
||||
|> map { isPolling, hasBackgroundTasks -> Bool in
|
||||
return isPolling || hasBackgroundTasks
|
||||
}
|
||||
|> distinctUntilChanged
|
||||
|> map { value -> AccountRecordId? in
|
||||
if value {
|
||||
|
||||
Reference in New Issue
Block a user