Peer sound and message removal update

This commit is contained in:
Ali
2022-03-30 01:22:44 +04:00
parent 0e55dd7db7
commit 235302c7c4
63 changed files with 3906 additions and 1934 deletions

View File

@@ -395,7 +395,10 @@ private func _internal_clearHistory(transaction: Transaction, postbox: Postbox,
if operation.minTimestamp != nil {
return .complete()
} else {
let flags: Int32 = 0
var flags: Int32 = 0
if operation.type == .forEveryone {
flags |= 1 << 0
}
return network.request(Api.functions.channels.deleteHistory(flags: flags, channel: inputChannel, maxId: operation.topMessageId.id))
|> map(Optional.init)
|> `catch` { _ -> Signal<Api.Updates?, NoError> in