Merge commit 'c59bbe4a89775305b1575c1ec63203c62f8db575'

# Conflicts:
#	TelegramUI/FetchMediaUtils.swift
This commit is contained in:
Peter
2018-10-19 20:33:48 +03:00
31 changed files with 2147 additions and 61 deletions

View File

@@ -318,8 +318,8 @@ final class ChatMessageInteractiveMediaNode: ASDisplayNode {
if let strongSelf = self {
if file.isAnimated {
strongSelf.fetchDisposable.set(fetchedMediaResource(postbox: account.postbox, reference: AnyMediaReference.message(message: MessageReference(message), media: file).resourceReference(file.resource), statsCategory: statsCategoryForFileWithAttributes(file.attributes)).start())
} else {
strongSelf.fetchDisposable.set(messageMediaFileInteractiveFetched(account: account, message: message, file: file, userInitiated: manual).start())
} else {
strongSelf.fetchDisposable.set(messageMediaFileInteractiveFetched(account: account, message: message, file: file, userInitiated: manual).start())
}
}
}, cancel: {