mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Peer sound and message removal update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user