no message

This commit is contained in:
Peter 2017-08-31 16:19:06 +03:00
parent 8fd5b0f7cc
commit 4da0f861e1
4 changed files with 4 additions and 3 deletions

View File

@ -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 {

View File

@ -279,7 +279,7 @@ private final class MultipartCdnHashSource {
strongSelf.requestMore()
}
} else {
assertionFailure()
//assertionFailure()
}
}
}))

View File

@ -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

View File

@ -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