mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix build
This commit is contained in:
parent
347cf2da81
commit
cf15c15e0e
@ -76,11 +76,11 @@ public extension TelegramEngine {
|
||||
|
||||
public func peerStarsState(peerId: EnginePeer.Id) -> Signal<StarsContext.State?, NoError> {
|
||||
return _internal_requestStarsState(account: self.account, peerId: peerId, offset: nil)
|
||||
|> map { state in
|
||||
|> map { state -> StarsContext.State? in
|
||||
guard let state else {
|
||||
return nil
|
||||
}
|
||||
return StarsContext.State(balance: state.balance, transactions: state.transactions)
|
||||
return StarsContext.State(balance: state.balance, transactions: state.transactions, canLoadMore: false, isLoading: false)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user