mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -14,8 +14,9 @@ public final class AdMessageAttribute: MessageAttribute {
|
||||
public let sponsorInfo: String?
|
||||
public let additionalInfo: String?
|
||||
public let canReport: Bool
|
||||
public let hasContentMedia: Bool
|
||||
|
||||
public init(opaqueId: Data, messageType: MessageType, url: String, buttonText: String, sponsorInfo: String?, additionalInfo: String?, canReport: Bool) {
|
||||
public init(opaqueId: Data, messageType: MessageType, url: String, buttonText: String, sponsorInfo: String?, additionalInfo: String?, canReport: Bool, hasContentMedia: Bool) {
|
||||
self.opaqueId = opaqueId
|
||||
self.messageType = messageType
|
||||
self.url = url
|
||||
@@ -23,6 +24,7 @@ public final class AdMessageAttribute: MessageAttribute {
|
||||
self.sponsorInfo = sponsorInfo
|
||||
self.additionalInfo = additionalInfo
|
||||
self.canReport = canReport
|
||||
self.hasContentMedia = hasContentMedia
|
||||
}
|
||||
|
||||
public init(decoder: PostboxDecoder) {
|
||||
|
||||
Reference in New Issue
Block a user