Swiftgram/submodules/SyncCore/Sources/TelegramMediaUnsupported.swift
2019-10-21 16:58:00 +04:00

32 lines
639 B
Swift

import Foundation
#if os(macOS)
import PostboxMac
#else
import Postbox
#endif
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)
}
}