mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Refactoring
This commit is contained in:
@@ -48,9 +48,8 @@ private func presentLiveLocationController(context: AccountContext, peerId: Peer
|
||||
}
|
||||
}
|
||||
if let id = context.liveLocationManager?.internalMessageForPeerId(peerId) {
|
||||
let _ = (context.account.postbox.transaction { transaction -> EngineMessage? in
|
||||
return transaction.getMessage(id).flatMap(EngineMessage.init)
|
||||
} |> deliverOnMainQueue).start(next: presentImpl)
|
||||
let _ = (context.engine.data.get(TelegramEngine.EngineData.Item.Messages.Message(id: id))
|
||||
|> deliverOnMainQueue).start(next: presentImpl)
|
||||
} else if let liveLocationManager = context.liveLocationManager {
|
||||
let _ = (liveLocationManager.summaryManager.peersBroadcastingTo(peerId: peerId)
|
||||
|> take(1)
|
||||
|
||||
Reference in New Issue
Block a user