mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
38 lines
1.1 KiB
Swift
38 lines
1.1 KiB
Swift
import Foundation
|
|
|
|
enum ChatTextInputAccessoryItem: Equatable {
|
|
case keyboard
|
|
case stickers
|
|
case inputButtons
|
|
case messageAutoremoveTimeout(Int32?)
|
|
|
|
static func ==(lhs: ChatTextInputAccessoryItem, rhs: ChatTextInputAccessoryItem) -> Bool {
|
|
switch lhs {
|
|
case .keyboard:
|
|
if case .keyboard = rhs {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
case .stickers:
|
|
if case .stickers = rhs {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
case .inputButtons:
|
|
if case .inputButtons = rhs {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
case let .messageAutoremoveTimeout(lhsTimeout):
|
|
if case let .messageAutoremoveTimeout(rhsTimeout) = rhs, lhsTimeout == rhsTimeout {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
}
|
|
}
|