mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -1285,7 +1285,7 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
||||
}
|
||||
let emojiSounds = AnimatedEmojiSoundsConfiguration.with(appConfiguration: appConfiguration, account: item.context.account)
|
||||
for (emoji, file) in emojiSounds.sounds {
|
||||
if emoji.unicodeScalars.first == firstScalar {
|
||||
if emoji.strippedEmoji == text.strippedEmoji {
|
||||
let mediaManager = item.context.sharedContext.mediaManager
|
||||
let mediaPlayer = MediaPlayer(audioSessionManager: mediaManager.audioSession, postbox: item.context.account.postbox, resourceReference: .standalone(resource: file.resource), streamable: .none, video: false, preferSoftwareDecoding: false, enableSound: true, fetchAutomatically: true, ambient: true)
|
||||
mediaPlayer.togglePlayPause()
|
||||
|
||||
@@ -940,6 +940,8 @@ final class ChatMessageInteractiveFileNode: ASDisplayNode {
|
||||
self.streamingStatusNode = streamingStatusNode
|
||||
streamingStatusNode.frame = streamingCacheStatusFrame
|
||||
self.addSubnode(streamingStatusNode)
|
||||
} else if let streamingStatusNode = self.streamingStatusNode {
|
||||
streamingStatusNode.backgroundNodeColor = backgroundNodeColor
|
||||
}
|
||||
|
||||
if let statusNode = self.statusNode {
|
||||
|
||||
@@ -306,6 +306,8 @@ func openChatTheme(context: AccountContext, message: Message, pushController: @e
|
||||
} else {
|
||||
displayUnsupportedAlert()
|
||||
}
|
||||
} else {
|
||||
displayUnsupportedAlert()
|
||||
}
|
||||
} else {
|
||||
displayUnsupportedAlert()
|
||||
|
||||
Reference in New Issue
Block a user