mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Play emoji animations only in personal chats
This commit is contained in:
parent
2f3bdcead2
commit
6ba9c12b1e
@ -1601,6 +1601,8 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
|||||||
additionalTextEmoji = basicEmoji
|
additionalTextEmoji = basicEmoji
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let syncAnimations = item.message.id.peerId.namespace == Namespaces.Peer.CloudUser
|
||||||
|
|
||||||
return .optionalAction({
|
return .optionalAction({
|
||||||
var haptic: EmojiHaptic?
|
var haptic: EmojiHaptic?
|
||||||
if let current = self.haptic {
|
if let current = self.haptic {
|
||||||
@ -1617,8 +1619,7 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
|||||||
self.haptic = haptic
|
self.haptic = haptic
|
||||||
}
|
}
|
||||||
|
|
||||||
if let animationItems = item.associatedData.additionalAnimatedEmojiStickers[additionalTextEmoji] {
|
if syncAnimations, let animationItems = item.associatedData.additionalAnimatedEmojiStickers[additionalTextEmoji] {
|
||||||
let syncAnimations = item.message.id.peerId.namespace == Namespaces.Peer.CloudUser
|
|
||||||
let playHaptic = haptic == nil
|
let playHaptic = haptic == nil
|
||||||
|
|
||||||
var hapticFeedback: HapticFeedback
|
var hapticFeedback: HapticFeedback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user