Swiftgram/submodules/SyncCore/Sources/TelegramMediaUnsupported.swift
2019-11-01 17:11:12 +04:00

29 lines
587 B
Swift

import Foundation
import Postbox
public final class TelegramMediaUnsupported: Media {
public let id: MediaId? = nil
public let peerIds: [PeerId] = []
public init() {
}
public init(decoder: PostboxDecoder) {
}
public func encode(_ encoder: PostboxEncoder) {
}
public func isEqual(to other: Media) -> Bool {
if other is TelegramMediaUnsupported {
return true
}
return false
}
public func isSemanticallyEqual(to other: Media) -> Bool {
return self.isEqual(to: other)
}
}