Skip to content

Setting push preferences does not update currentUser state #2356

@geweald

Description

@geweald

Which packages are you using?

stream_chat

On what platforms did you experience the issue?

iOS, Android, Web

What version are you using?

Latest 9.16.0

What happened?

Updated push preferences with setPushPreferences on the client. Then when reading currentUser.pushPreferences it's still showing old value until app reloads

Steps to reproduce

1. Set push preferences that are different that current ones calling `setPushPreferences` on the stream chat client
2. When above finishes with success, read client's `state.currentUser.pushPreferences` - the value is not updated

Supporting info to reproduce

No response

Relevant log output

Flutter analyze output

Flutter doctor output

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions