mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-06 16:30:55 +00:00
Fixed build
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user