stream-chat-flutter icon indicating copy to clipboard operation
stream-chat-flutter copied to clipboard

Pinned messages get duplicated

Open qu0cquyen opened this issue 5 months ago • 2 comments

Which packages are you using?

stream_chat_flutter

On what platforms did you experience the issue?

iOS, Android

What version are you using?

stream_chat: ^8.0.0 stream_chat_flutter_core: ^8.0.0 stream_chat_flutter: ^8.0.0 stream_chat_persistence: ^8.0.0

What happened?

When pin a message, the pinned messages get duplicated in channel.state.pinnedMessages. (Happen in both non-StreamChatPersistenceClient and using StreamChatPersistenceClient

  • Unpin message:
    • No StreamChatPersistenceClient, the pinned message get removed from channel.state.pinnedMessages -> Correct
    • With StreamChatPersistenceClient, the pinned message still inside channel.state.pinnedMessages -> Bug

image

Steps to reproduce

1. Pin a message
2. Access pinned messages from `channel.state.pinnedMessages`
3. Unpin messages with `StreamChatPersistenClient`

Supporting info to reproduce

No response

Relevant log output

No response

Flutter analyze output

No response

Flutter doctor output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

qu0cquyen avatar Aug 28 '24 15:08 qu0cquyen