Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin 2020-10-17 15:32:43 +04:00
commit 912a9fa492
2 changed files with 4 additions and 1 deletions

View File

@ -1115,7 +1115,7 @@ public final class AccountViewTracker {
return account.postbox.transaction { transaction -> Void in
for result in results {
switch result {
case let .stickerSet(_, _, documents):
case let .stickerSet(_, _, documents)?:
for document in documents {
if let file = telegramMediaFileFromApiDocument(document) {
if transaction.getMedia(file.fileId) != nil {

View File

@ -20,6 +20,7 @@ public func requestUpdatePinnedMessage(account: Account, peerId: PeerId, update:
return (transaction.getPeer(peerId), transaction.getPeerCachedData(peerId: peerId))
}
|> mapError { _ -> UpdatePinnedMessageError in
return .generic
}
|> mapToSignal { peer, cachedPeerData -> Signal<Void, UpdatePinnedMessageError> in
guard let peer = peer, let inputPeer = apiInputPeer(peer) else {
@ -97,6 +98,7 @@ public func requestUpdatePinnedMessage(account: Account, peerId: PeerId, update:
})*/
}
|> mapError { _ -> UpdatePinnedMessageError in
return .generic
}
}
} else {
@ -200,6 +202,7 @@ public func requestUpdatePinnedMessage(account: Account, peerId: PeerId, update:
})
}
|> mapError { _ -> UpdatePinnedMessageError in
return .generic
}
}
} else {