Fixed build

This commit is contained in:
Ilya Laktyushin
2019-07-01 19:24:41 +02:00
parent 6fe3789f8d
commit e9520a2de5
4 changed files with 10 additions and 7 deletions

View File

@@ -87,9 +87,7 @@
}
}
}
if (bodyText != nil) {
[self processMessageWithUserInfo:remoteNotification defaultTitle:titleText defaultBody:bodyText completion:completionHandler];
}
[self processMessageWithUserInfo:remoteNotification defaultTitle:titleText defaultBody:bodyText completion:completionHandler];
}
- (void)processMessageWithUserInfo:(NSDictionary *)userInfo defaultTitle:(NSString *)defaultTitle defaultBody:(NSString *)defaultBody completion:(void (^)(WKUserNotificationInterfaceType))completionHandler
@@ -109,7 +107,7 @@
}
int32_t messageId = [mid intValue];
if (peerId == 0 || messageId == 0)
if (true || peerId == 0 || messageId == 0)
{
if (defaultTitle.length > 0){
self.nameLabel.hidden = false;

View File

@@ -20,6 +20,7 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
private var shareButtonNode: HighlightableButtonNode?
var telegramFile: TelegramMediaFile?
private let disposable = MetaDisposable()
private let dateAndStatusNode: ChatMessageDateAndStatusNode
private var replyInfoNode: ChatMessageReplyInfoNode?
@@ -45,7 +46,11 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
self.addSubnode(self.animationNode)
self.addSubnode(self.dateAndStatusNode)
}
deinit {
self.disposable.dispose()
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

View File

@@ -107,7 +107,7 @@ final class HorizontalStickerGridItemNode: GridItemNode {
animationNode.started = { [weak self] in
self?.imageNode.alpha = 0.0
}
animationNode.setup(account: account, fileReference: stickerPackFileReference(item.file), width: 140, height: 140)
animationNode.setup(account: account, resource: item.file.resource, width: 140, height: 140, mode: .cached)
} else {
self.imageNode.alpha = 1.0
self.imageNode.setSignal(chatMessageSticker(account: account, file: item.file, small: true))

View File

@@ -111,7 +111,7 @@ private final class TrendingTopItemNode: ASDisplayNode {
animationNode.started = { [weak self] in
self?.imageNode.alpha = 0.0
}
animationNode.setup(account: account, fileReference: stickerPackFileReference(item.file), width: 140, height: 140)
animationNode.setup(account: account, resource: item.file.resource, width: 140, height: 140, mode: .cached)
} else {
self.imageNode.setSignal(chatMessageSticker(account: account, file: item.file, small: true, synchronousLoad: synchronousLoads), attemptSynchronously: synchronousLoads)
self.loadDisposable.set(freeMediaFileResourceInteractiveFetched(account: account, fileReference: stickerPackFileReference(item.file), resource: chatMessageStickerResource(file: item.file, small: true)).start())