fix selected emoji not shown in the popup list

pull/680/head
Ryan Zhao 2 years ago
parent bd0614532e
commit 85fc22110f

@ -132,6 +132,15 @@ final class ReactionListSheet: BaseVC {
setUpViewHierarchy()
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
reactionContainer.scrollToItem(
at: IndexPath(item: lastSelectedReactionIndex, section: 0),
at: .centeredHorizontally,
animated: false
)
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)

Loading…
Cancel
Save