Refactoring

This commit is contained in:
Ali
2021-03-24 02:56:24 +04:00
parent 50fe822e85
commit 2f9189d220
39 changed files with 16 additions and 468 deletions

View File

@@ -374,7 +374,7 @@ private func resolveInternalUrl(account: Account, url: ParsedInternalUrl) -> Sig
if let peer = peer {
foundPeer = .single(peer)
} else {
foundPeer = findChannelById(postbox: account.postbox, network: account.network, channelId: messageId.peerId.id)
foundPeer = TelegramEngine(account: account).peerNames.findChannelById(channelId: messageId.peerId.id)
}
return foundPeer
|> mapToSignal { foundPeer -> Signal<ResolvedUrl?, NoError> in