Skip to content

The create_user function in Stream doesn’t pass the image field correctly, which causes the user avatar to fail to display. #200

@m0reA1

Description

@m0reA1

As described in the title. It’s also easy to see from the code that image isn’t being assigned to UserRequest.

    @telemetry.operation_name("getstream.api.common.create_user")
    async def create_user(self, name: str = "", id: str = str(uuid4()), image=""):
        """
        Creates or updates users. This method performs an "upsert" operation,
        where it checks if each user already exists and updates their information
        if they do, or creates a new user entry if they do not.
        """
        user = UserRequest(name=name, id=id)
        users_map = {user.id: user}
        response = await self.update_users(users_map)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions