mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Merge commit 'b909d1bea021e1c9c86626981a189d715dfffad5'
This commit is contained in:
@@ -772,13 +772,16 @@ private func resolveInternalUrl(context: AccountContext, url: ParsedInternalUrl)
|
||||
}
|
||||
|> then(.single(.result(.story(peerId: peer.id, id: id)))))
|
||||
case .boost:
|
||||
return .single(.progress) |> then(combineLatest(
|
||||
context.engine.peers.getChannelBoostStatus(peerId: peer.id),
|
||||
context.engine.peers.getMyBoostStatus()
|
||||
return .single(.progress)
|
||||
|> then(
|
||||
combineLatest(
|
||||
context.engine.peers.getChannelBoostStatus(peerId: peer.id),
|
||||
context.engine.peers.getMyBoostStatus()
|
||||
)
|
||||
|> map { boostStatus, myBoostStatus -> ResolveInternalUrlResult in
|
||||
return .result(.boost(peerId: peer.id, status: boostStatus, myBoostStatus: myBoostStatus))
|
||||
}
|
||||
)
|
||||
|> map { boostStatus, myBoostStatus -> ResolveInternalUrlResult in
|
||||
return .result(.boost(peerId: peer.id, status: boostStatus, myBoostStatus: myBoostStatus))
|
||||
})
|
||||
}
|
||||
} else {
|
||||
return .single(.result(.peer(peer._asPeer(), .chat(textInputState: nil, subject: nil, peekData: nil))))
|
||||
|
||||
Reference in New Issue
Block a user