mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Adjust ad offset
This commit is contained in:
parent
09a66b0044
commit
11ae567544
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue