Skip to content

Commit dc5be1f

Browse files
authored
[CHAT-2437] Transfer channel ownership (#147)
1 parent 38eaefa commit dc5be1f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

async_tasks.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,17 @@ const (
8282
)
8383

8484
type DeleteUserOptions struct {
85-
User DeleteType `json:"user"`
86-
Messages DeleteType `json:"messages,omitempty"`
87-
Conversations DeleteType `json:"conversations,omitempty"`
85+
User DeleteType `json:"user"`
86+
Messages DeleteType `json:"messages,omitempty"`
87+
Conversations DeleteType `json:"conversations,omitempty"`
88+
NewChannelOwnerID string `json:"new_channel_owner_id,omitempty"`
8889
}
8990

9091
// DeleteUsers deletes users asynchronously.
9192
// User will be deleted either "hard" or "soft"
9293
// Conversations (1to1 channels) will be deleted if either "hard" or "soft"
9394
// Messages will be deleted if either "hard" or "soft"
95+
// NewChannelOwnerID any channels owned by the hard-deleted user will be transferred to this user ID
9496
// It returns a task ID, the status of the task can be check with client.GetTask method.
9597
func (c *Client) DeleteUsers(userIDs []string, options DeleteUserOptions) (string, error) {
9698
if len(userIDs) == 0 {

0 commit comments

Comments
 (0)