Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove and add members can not pass initiator #130

Open
erdtsieck opened this issue Sep 28, 2023 · 0 comments
Open

Remove and add members can not pass initiator #130

erdtsieck opened this issue Sep 28, 2023 · 0 comments

Comments

@erdtsieck
Copy link

erdtsieck commented Sep 28, 2023

The initiator that removed the member is ignored in the request to update channel.

This also leads to member.removed events (on SQS) not containing the initiator of the action.

In the code below initiatorId is ignored

var memberDeletedMessage = "some message";
var messageRequest = new MessageRequest() { 
    Type = MessageRequestType.System, 
    Text = memberDeletedMessage, 
    UserId = initiatorId 
};

await _streamClientFactory.GetChannelClient()
    .RemoveMembersAsync(channelType, channelId, new List<string> { memberToDeleteUserId }, messageRequest);
@erdtsieck erdtsieck changed the title RemoveMembersAsync ignores UserId on MessageRequest Remove and add members can not pass initiator Sep 28, 2023
erdtsieck added a commit to erdtsieck/stream-chat-net that referenced this issue Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant