Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Pinned Message when using Search Pinned Message api #2090

Open
1 task done
qu0cquyen opened this issue Jan 23, 2025 · 0 comments
Open
1 task done

Missing Pinned Message when using Search Pinned Message api #2090

qu0cquyen opened this issue Jan 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@qu0cquyen
Copy link

qu0cquyen commented Jan 23, 2025

Which packages are you using?

stream_chat_flutter, stream_chat_flutter_core, stream_chat

On what platforms did you experience the issue?

Android, iOS

What version are you using?

stream_chat: ^8.2.0
stream_chat_flutter_core: ^8.2.0
stream_chat_flutter: ^8.2.0

What happened?

Use StreamMessageSearchListController to query Pinned Messages with the following filters:

client: chatClient,
      filter: Filter.equal(
        'cid',
        // [arg.cid ?? ''],
        arg.cid ?? '',
      ),
      messageFilter: Filter.equal('pinned', true),
      sort: [
        SortOption(
          'pinned_at',
          direction: SortOption.DESC,
        )
      ],
      limit: 100,

The message responses get from query is correct. However, missing some pinned message.

Image Image

Bug Video:
https://drive.google.com/file/d/1rs7G4J8EkIX45s9lK1aas5KL4kYtX8bk/view?usp=share_link

This is not happened in web version.

Steps to reproduce

1. Send a message with an attachment and text. 
2. Pin sent message. 
3. Query Pinned Message. 
4. Send another text message 
5. Quickly pin the second message just sent. 
6. Query Pinned Message. => The second message doesn't show up

Supporting info to reproduce

NOTICE: This bug doesn't usually happen.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@qu0cquyen qu0cquyen added the bug Something isn't working label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant