Swiftgram/TelegramUI/InstantPageMedia.swift
Ilya Laktyushin cc17271034 Send non opaque images from pasteboard as stickers
Language suggestion alert
Ability to create new contact from "tel:"-link context menu and chat search
Upload date display for profile pictures
Instant View improvements
2018-11-11 18:03:00 +04:00

16 lines
459 B
Swift

import Foundation
import Postbox
import TelegramCore
struct InstantPageMedia: Equatable {
let index: Int
let media: Media
let url: InstantPageUrlItem?
let caption: RichText?
let credit: RichText?
static func ==(lhs: InstantPageMedia, rhs: InstantPageMedia) -> Bool {
return lhs.index == rhs.index && lhs.media.isEqual(to: rhs.media) && lhs.url == rhs.url && lhs.caption == rhs.caption && lhs.credit == rhs.credit
}
}