scroll to top on pack selection

This commit is contained in:
Nihaal Sharma committed 2026-08-02 13:58:34 +05:30
1 parent b52026a4a3
commit a3a5f64a89
1 file changed
+4 -1
@@ -48,8 +48,11 @@ class StickerBrowserViewController: MSStickerBrowserViewController {
let msSticker = emoji.msSticker else { continue }
msStickers.append(msSticker)
}
stickerBrowserView.reloadData()
setEmptyViewTo(visible: msStickers.isEmpty)
stickerBrowserView.reloadData()
guard let subview = stickerBrowserView.subviews.first,
let collectionView = subview as? UICollectionView else { return }
collectionView.setContentOffset(CGPoint(x: 0, y: 0), animated: true)
}
func setEmptyViewTo(visible: Bool) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.