GetStream / stream-chat-flutter

Flutter Chat SDK - Build your own chat app experience using Dart, Flutter and the Stream Chat Messaging API.
https://getstream.io/chat/sdk/flutter/
Other
918 stars 337 forks source link

Pagination Limit not working for Message List Core #1955

Closed rlee1990 closed 1 week ago

rlee1990 commented 3 months ago

Which packages are you using?

stream_chat_flutter_core

On what platforms did you experience the issue?

iOS, Android, Web, Windows, MacOS, Linux

What version are you using?

8.0.0-beta.3

What happened?

When the channel's messages are loaded, it loads all messages, not the set limit of 10.

Steps to reproduce

Create a project.
Use the core package.
Use message list core, set a paginationLimit to 10 or less.
Add messageListController.
Add 30 messages to the chat.
Close the chat window and reopen it.
All messages will load.

Supporting info to reproduce

No response

Relevant log output

No response

Flutter analyze output

No response

Flutter doctor output

[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale
    en-US)
    • Flutter version 3.22.2 on channel stable at
      /Users/rickeylee/Desktop/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (12 days ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/rickeylee/Library/Android/sdk
    • Platform android-34-ext8, build-tools 34.0.0
    • ANDROID_HOME = /Users/rickeylee/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.90.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.90.0

[✓] Connected device (6 available)
    • SM F926U (mobile)               • RFCR802EMHY                              • android-arm64  • Android 13 (API 33)
    • rickey lee’s iPhone (mobile)    • d0545eb2ff26e1c087d1b29c26f8e15da19284bb • ios            • iOS 16.7.8 20H343
    • iPhone 15 Pro Max (mobile)      • CDE91FEB-7CB5-4C6F-9BD2-F4443492C48C     • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
    • macOS (desktop)                 • macos                                    • darwin-arm64   • macOS 14.5 23F79 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                    • darwin         • macOS 14.5 23F79 darwin-arm64
    • Chrome (web)                    • chrome                                   • web-javascript • Google Chrome 125.0.6422.176
    ! Error: Browsing on the local area network for rickey’s Apple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code -27)
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Code of Conduct

deven98 commented 3 months ago

Hey @rlee1990 I'm working on launching new versions of the packages at the moment, I will take a look at all your issues at once when I'm done.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 20 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.

rlee1990 commented 2 months ago

@deven98 can you please reopen this?

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 20 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 20 days with no activity.

github-actions[bot] commented 1 week ago

This issue was closed because it has been inactive for 7 days since being marked as stale.