stream-chat-net icon indicating copy to clipboard operation
stream-chat-net copied to clipboard

Remove and add members can not pass initiator

Open erdtsieck opened this issue 9 months ago • 0 comments

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 avatar Sep 28 '23 11:09 erdtsieck