Update the pinned header and footer correctly when the offset changes.
When using pinToVisibleBounds with UICollectionViewCompositionalLayout, it always returns true.
## What is this PR for?
This PR introduces support for pinned (sticky) headers and footers in ChatLayout. The implementation allows headers and footers to stay visible within the collection view's...