Skip to content

Deleting users inconsistent - Documentation and Implementation #1680

@2200software

Description

@2200software

The server side API is somewhat inconsistent i am on v9.29.0.

Calling deleteUsers with a single user ID inside an array and the options as
user:'hard', new_channel_owner_id:'adminUserId' (I am using the 'adminUserId' which is the same user that is the app admin)

Returns success and the user also gets deleted but the channels do not get their new owner.

Additionally the documentation https://getstream.io/chat/docs/node/update_users/

is also confusing because if the "conversations" (channels ?) get hard deleted when the user gets deleted then what does the new_channel_owner_id do ?

I actually want that the created channels can be assigned to the admin if the account of the owner gets deleted.

Can someone help ?

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