Adjust ad offset

This commit is contained in:
Ali 2021-11-05 22:22:45 +04:00
parent 09a66b0044
commit 11ae567544

View File

@ -4979,10 +4979,10 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
minOffsetForNavigation += itemNode.bounds.height minOffsetForNavigation += itemNode.bounds.height
switch offset { switch offset {
case let .known(offset): case let .known(offset):
if offset <= itemNode.bounds.height / 2.0 { if offset <= 50.0 {
strongSelf.chatDisplayNode.historyNode.adSeenProcessingManager.add([message.id]) strongSelf.chatDisplayNode.historyNode.adSeenProcessingManager.add([message.id])
} }
default: default:
break break
} }