Skip to content

Commit 0f994c4

Browse files
committed
Merge branch 'macos-12.2-release'
2 parents d5a9521 + b53b254 commit 0f994c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submodules/TelegramCore/Sources/TelegramEngine/Messages/DeleteMessagesInteractively.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func _internal_clearHistoryInteractively(postbox: Postbox, peerId: PeerId, threa
209209
func _internal_clearAuthorHistory(account: Account, peerId: PeerId, memberId: PeerId) -> Signal<Void, NoError> {
210210
return account.postbox.transaction { transaction -> Signal<Void, NoError> in
211211
if let peer = transaction.getPeer(peerId), let memberPeer = transaction.getPeer(memberId), let inputChannel = apiInputChannel(peer), let inputUser = apiInputPeer(memberPeer) {
212-
let signal = account.network.request(Api.functions.channels.deleteParticipantHistory(channel: inputChannel, participant: inputUser))
212+
let signal = peer.isMonoForum ? .fail(true) : account.network.request(Api.functions.channels.deleteParticipantHistory(channel: inputChannel, participant: inputUser))
213213
|> map { result -> Api.messages.AffectedHistory? in
214214
return result
215215
}

0 commit comments

Comments
 (0)