mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-30 03:44:18 +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())
|
//|> delay(4.0, queue: Queue.concurrentDefaultQueue())
|
||||||
|> mapToSignal { peer in
|
|> mapToSignal { peer in
|
||||||
if let inputPeer = apiInputPeer(peer) {
|
if let inputPeer = apiInputPeer(peer) {
|
||||||
let limit = 20
|
let limit = 100
|
||||||
|
|
||||||
let request: Signal<Api.messages.Messages, MTRpcError>
|
let request: Signal<Api.messages.Messages, MTRpcError>
|
||||||
if let tagMask = tagMask {
|
if let tagMask = tagMask {
|
||||||
|
|||||||
@ -279,7 +279,7 @@ private final class MultipartCdnHashSource {
|
|||||||
strongSelf.requestMore()
|
strongSelf.requestMore()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
assertionFailure()
|
//assertionFailure()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|||||||
@ -154,6 +154,7 @@ public final class TelegramMediaWebpageLoadedContent: PostboxCoding, Equatable {
|
|||||||
public func ==(lhs: TelegramMediaWebpageLoadedContent, rhs: TelegramMediaWebpageLoadedContent) -> Bool {
|
public func ==(lhs: TelegramMediaWebpageLoadedContent, rhs: TelegramMediaWebpageLoadedContent) -> Bool {
|
||||||
if lhs.url != rhs.url
|
if lhs.url != rhs.url
|
||||||
|| lhs.displayUrl != rhs.displayUrl
|
|| lhs.displayUrl != rhs.displayUrl
|
||||||
|
|| lhs.hash != rhs.hash
|
||||||
|| lhs.type != rhs.type
|
|| lhs.type != rhs.type
|
||||||
|| lhs.websiteName != rhs.websiteName
|
|| lhs.websiteName != rhs.websiteName
|
||||||
|| lhs.title != rhs.title
|
|| lhs.title != rhs.title
|
||||||
|
|||||||
@ -39,7 +39,7 @@ public func actualizedWebpage(postbox: Postbox, network: Network, webpage: Teleg
|
|||||||
return .single(.webPageNotModified)
|
return .single(.webPageNotModified)
|
||||||
}
|
}
|
||||||
|> mapToSignal { result -> Signal<TelegramMediaWebpage, NoError> in
|
|> 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
|
return postbox.modify { modifier -> TelegramMediaWebpage in
|
||||||
modifier.updateMedia(updatedWebpage.webpageId, update: updatedWebpage)
|
modifier.updateMedia(updatedWebpage.webpageId, update: updatedWebpage)
|
||||||
return updatedWebpage
|
return updatedWebpage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user