mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Story reactions improvements
This commit is contained in:
@@ -99,10 +99,18 @@ public enum CodableDrawingEntity: Equatable {
|
||||
)
|
||||
)
|
||||
case let .sticker(entity):
|
||||
if case let .file(_, type) = entity.content, case let .reaction(reaction, _) = type {
|
||||
if case let .file(_, type) = entity.content, case let .reaction(reaction, style) = type {
|
||||
var flags: MediaArea.ReactionFlags = []
|
||||
if case .black = style {
|
||||
flags.insert(.isDark)
|
||||
}
|
||||
if entity.mirrored {
|
||||
flags.insert(.isFlipped)
|
||||
}
|
||||
return .reaction(
|
||||
coordinates: coordinates,
|
||||
reaction: reaction
|
||||
reaction: reaction,
|
||||
flags: flags
|
||||
)
|
||||
} else {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user