mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-28 19:05:49 +00:00
no message
This commit is contained in:
parent
8fd5b0f7cc
commit
4da0f861e1
@ -31,7 +31,7 @@ func fetchMessageHistoryHole(network: Network, postbox: Postbox, hole: MessageHi
|
||||
//|> delay(4.0, queue: Queue.concurrentDefaultQueue())
|
||||
|> mapToSignal { peer in
|
||||
if let inputPeer = apiInputPeer(peer) {
|
||||
let limit = 20
|
||||
let limit = 100
|
||||
|
||||
let request: Signal<Api.messages.Messages, MTRpcError>
|
||||
if let tagMask = tagMask {
|
||||
|
||||
@ -279,7 +279,7 @@ private final class MultipartCdnHashSource {
|
||||
strongSelf.requestMore()
|
||||
}
|
||||
} else {
|
||||
assertionFailure()
|
||||
//assertionFailure()
|
||||
}
|
||||
}
|
||||
}))
|
||||
|
||||
@ -154,6 +154,7 @@ public final class TelegramMediaWebpageLoadedContent: PostboxCoding, Equatable {
|
||||
public func ==(lhs: TelegramMediaWebpageLoadedContent, rhs: TelegramMediaWebpageLoadedContent) -> Bool {
|
||||
if lhs.url != rhs.url
|
||||
|| lhs.displayUrl != rhs.displayUrl
|
||||
|| lhs.hash != rhs.hash
|
||||
|| lhs.type != rhs.type
|
||||
|| lhs.websiteName != rhs.websiteName
|
||||
|| lhs.title != rhs.title
|
||||
|
||||
@ -39,7 +39,7 @@ public func actualizedWebpage(postbox: Postbox, network: Network, webpage: Teleg
|
||||
return .single(.webPageNotModified)
|
||||
}
|
||||
|> mapToSignal { result -> Signal<TelegramMediaWebpage, NoError> in
|
||||
if let updatedWebpage = telegramMediaWebpageFromApiWebpage(result), case .Loaded = updatedWebpage.content {
|
||||
if let updatedWebpage = telegramMediaWebpageFromApiWebpage(result), case .Loaded = updatedWebpage.content, updatedWebpage.webpageId == webpage.webpageId {
|
||||
return postbox.modify { modifier -> TelegramMediaWebpage in
|
||||
modifier.updateMedia(updatedWebpage.webpageId, update: updatedWebpage)
|
||||
return updatedWebpage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user