Skip to content

Missing Pinned Message when using Search Pinned Message api #2090

Description

@qu0cquyen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions