Deleting users inconsistent - Documentation and Implementation

Open
#1,680 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
api, documentation

Research direction

Start with the deleteUsers behavior described for v9.29.0 and the update_users documentation linked in the issue, focusing on the user:'hard' and new_channel_owner_id options. Reproduce the case with a single user ID and verify whether channels are reassigned; done requires resolving the behavior and documenting how conversations and ownership are handled.

Written by the indexing model from the issue text.

Description

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 ?

Dominant language
TypeScript
Stars
211
Forks
84
Avg merge
1d 2h
Merged PRs (30d)
89

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GetStream/stream-chat-js

All issues in GetStream/stream-chat-js

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.