mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactoring
This commit is contained in:
@@ -1882,9 +1882,9 @@ extension PresentationTheme: Codable {
|
||||
if let decoder = decoder as? PresentationThemeDecoding {
|
||||
let serviceBackgroundColor = decoder.serviceBackgroundColor ?? defaultServiceBackgroundColor
|
||||
decoder.referenceTheme = makeDefaultPresentationTheme(reference: referenceTheme, serviceBackgroundColor: serviceBackgroundColor)
|
||||
index = decoder.reference?.index ?? arc4random64()
|
||||
index = decoder.reference?.index ?? Int64.random(in: Int64.min ... Int64.max)
|
||||
} else {
|
||||
index = arc4random64()
|
||||
index = Int64.random(in: Int64.min ... Int64.max)
|
||||
}
|
||||
|
||||
self.init(name: (try? values.decode(PresentationThemeName.self, forKey: .name)) ?? .custom("Untitled"),
|
||||
|
||||
Reference in New Issue
Block a user