mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 16:06:59 +00:00
Adjust ad offset
This commit is contained in:
parent
09a66b0044
commit
11ae567544
@ -4979,10 +4979,10 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
minOffsetForNavigation += itemNode.bounds.height
|
||||
|
||||
switch offset {
|
||||
case let .known(offset):
|
||||
if offset <= itemNode.bounds.height / 2.0 {
|
||||
strongSelf.chatDisplayNode.historyNode.adSeenProcessingManager.add([message.id])
|
||||
}
|
||||
case let .known(offset):
|
||||
if offset <= 50.0 {
|
||||
strongSelf.chatDisplayNode.historyNode.adSeenProcessingManager.add([message.id])
|
||||
}
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user