From 474b918bd2d85fa8a0791ea6482f105f5b7e1342 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Tue, 26 Apr 2022 05:04:12 +0400 Subject: [PATCH] Fix reaction flags --- submodules/TelegramCore/Sources/State/AvailableReactions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/TelegramCore/Sources/State/AvailableReactions.swift b/submodules/TelegramCore/Sources/State/AvailableReactions.swift index e1f291f1a4..74e7a1857a 100644 --- a/submodules/TelegramCore/Sources/State/AvailableReactions.swift +++ b/submodules/TelegramCore/Sources/State/AvailableReactions.swift @@ -217,7 +217,7 @@ private extension AvailableReactions.Reaction { let aroundAnimationFile = aroundAnimation.flatMap(telegramMediaFileFromApiDocument) let centerAnimationFile = centerIcon.flatMap(telegramMediaFileFromApiDocument) let isEnabled = (flags & (1 << 0)) == 0 - let isPremium = (flags & (1 << 2)) == 0 + let isPremium = (flags & (1 << 2)) != 0 self.init( isEnabled: isEnabled, isPremium: isPremium,