Swiftgram/submodules/TelegramUI/Sources/ChatRecentActionsControllerState.swift
Peter Iakovlev e9a4a9347a Revert "Rename directories [skip ci]"
This reverts commit 789438a27450dcbdee6065ebf096198ed3b90fec
2020-03-01 10:06:51 +00:00

37 lines
1.0 KiB
Swift

import Foundation
import UIKit
import TelegramCore
import SyncCore
import TelegramPresentationData
import TelegramUIPreferences
final class ChatRecentActionsControllerState: Equatable {
let chatWallpaper: TelegramWallpaper
let theme: PresentationTheme
let strings: PresentationStrings
let fontSize: PresentationFontSize
init(chatWallpaper: TelegramWallpaper, theme: PresentationTheme, strings: PresentationStrings, fontSize: PresentationFontSize) {
self.chatWallpaper = chatWallpaper
self.theme = theme
self.strings = strings
self.fontSize = fontSize
}
static func ==(lhs: ChatRecentActionsControllerState, rhs: ChatRecentActionsControllerState) -> Bool {
if lhs.chatWallpaper != rhs.chatWallpaper {
return false
}
if lhs.theme !== rhs.theme {
return false
}
if lhs.strings !== rhs.strings {
return false
}
if lhs.fontSize != rhs.fontSize {
return false
}
return true
}
}