Update API [skip ci]

This commit is contained in:
Ilya Laktyushin
2022-12-08 23:21:16 +04:00
parent d631dcb626
commit c6dc8c9e56
7 changed files with 59 additions and 24 deletions

View File

@@ -435,7 +435,8 @@ private func uploadedMediaImageContent(network: Network, postbox: Postbox, trans
stickers = stickersValue
flags |= 1 << 0
}
break
} else if let _ = attribute as? MediaSpoilerMessageAttribute {
flags |= 1 << 2
}
}
return postbox.transaction { transaction -> Api.InputPeer? in
@@ -740,6 +741,8 @@ private func uploadedMediaFileContent(network: Network, postbox: Postbox, auxili
if let attribute = attribute as? AutoclearTimeoutMessageAttribute {
flags |= 1 << 1
ttlSeconds = attribute.timeout
} else if let _ = attribute as? MediaSpoilerMessageAttribute {
flags |= 1 << 5
}
}