This commit enhances the pagination logic in the ChannelScreen to improve message loading behavior. - Introduced a new `isNearBottom` state to detect when the user is near the bottom of the message list, triggering loading of newer messages. - Refactored the existing pagination logic to handle both loading older messages when near the top and newer messages when near the bottom. - Added logic to preserve the scroll position when new messages are loaded, ensuring a smoother user experience. - Improved logging for better debugging and tracking of pagination events. |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||