Remove ad animation

This commit is contained in:
Isaac
2024-03-27 23:03:32 +04:00
parent bf3541fca2
commit 9e1fdb3c8d
3 changed files with 64 additions and 2 deletions

View File

@@ -499,8 +499,14 @@ func contextMenuForChatPresentationInterfaceState(chatPresentationInterfaceState
opaqueId: adAttribute.opaqueId,
title: title,
options: options,
completed: {
completed: { [weak interfaceInteraction] in
guard let interfaceInteraction else {
return
}
guard let chatController = interfaceInteraction.chatController() as? ChatControllerImpl else {
return
}
chatController.removeAd(opaqueId: adAttribute.opaqueId)
}
)
)