mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
UI updates
This commit is contained in:
@@ -216,6 +216,17 @@ func preparedChatHistoryViewTransition(from fromView: ChatHistoryView?, to toVie
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if case .Initial = reason, scrollToItem == nil {
|
||||
var index = toView.filteredEntries.count - 1
|
||||
for entry in toView.filteredEntries {
|
||||
if case let .MessageEntry(message, _, _, _, _, _) = entry {
|
||||
if let _ = message.adAttribute {
|
||||
scrollToItem = ListViewScrollToItem(index: index + 1, position: .top(0.0), animated: false, curve: curve, directionHint: .Down)
|
||||
break
|
||||
}
|
||||
}
|
||||
index -= 1
|
||||
}
|
||||
}
|
||||
|
||||
if updatedMessageSelection {
|
||||
|
||||
Reference in New Issue
Block a user