stream-chat-flutter
stream-chat-flutter copied to clipboard
Pinned messages get duplicated
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 fromchannel.state.pinnedMessages
-> Correct -
With StreamChatPersistenceClient
, the pinned message still insidechannel.state.pinnedMessages
-> Bug
-
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