mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[WIP] Message effects
This commit is contained in:
@@ -111,7 +111,7 @@ extension ChatControllerImpl {
|
||||
actions.animationCache = self.controllerInteraction?.presentationContext.animationCache
|
||||
|
||||
if canAddMessageReactions(message: topMessage), let allowedReactions = allowedReactions, !topReactions.isEmpty {
|
||||
actions.reactionItems = topReactions.map(ReactionContextItem.reaction)
|
||||
actions.reactionItems = topReactions.map { ReactionContextItem.reaction(item: $0, icon: .none) }
|
||||
actions.selectedReactionItems = selectedReactions.reactions
|
||||
if message.areReactionsTags(accountPeerId: self.context.account.peerId) {
|
||||
if self.presentationInterfaceState.isPremium {
|
||||
@@ -131,7 +131,7 @@ extension ChatControllerImpl {
|
||||
if !actions.reactionItems.isEmpty {
|
||||
let reactionItems: [EmojiComponentReactionItem] = actions.reactionItems.compactMap { item -> EmojiComponentReactionItem? in
|
||||
switch item {
|
||||
case let .reaction(reaction):
|
||||
case let .reaction(reaction, _):
|
||||
return EmojiComponentReactionItem(reaction: reaction.reaction.rawValue, file: reaction.stillAnimation)
|
||||
default:
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user