mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -192,15 +192,12 @@ public enum CodableDrawingEntity: Equatable {
|
||||
url: url
|
||||
)
|
||||
case let .weather(entity):
|
||||
var flags: MediaArea.WeatherFlags = []
|
||||
if entity.style == .black {
|
||||
flags.insert(.isDark)
|
||||
}
|
||||
let color: UInt32 = 0xffffffff
|
||||
return .weather(
|
||||
coordinates: coordinates,
|
||||
emoji: entity.emoji,
|
||||
temperature: entity.temperature,
|
||||
flags: flags
|
||||
color: Int32(bitPattern: color)
|
||||
)
|
||||
default:
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user