Skip to content

Commit

Permalink
chore: deprecate InviteUsersToCommunity
Browse files Browse the repository at this point in the history
  • Loading branch information
osmaczko committed Jul 27, 2023
1 parent f89eee9 commit fa5b316
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protocol/messenger_communities.go
Original file line number Diff line number Diff line change
Expand Up @@ -1870,6 +1870,8 @@ func (m *Messenger) ImportCommunity(ctx context.Context, key *ecdsa.PrivateKey)
return response, nil
}

// Deprecated: Community invites are no longer sent to users.
// Instead, the community is just shared and access requests is required from users.
func (m *Messenger) InviteUsersToCommunity(request *requests.InviteUsersToCommunity) (*MessengerResponse, error) {
if err := request.Validate(); err != nil {
return nil, err
Expand Down
3 changes: 3 additions & 0 deletions services/ext/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ func (api *PublicAPI) DeleteCommunityChat(communityID types.HexBytes, chatID str
}

// InviteUsersToCommunity invites the users with pks to the community with ID
//
// Deprecated: Community invites are no longer sent to users.
// Instead, the community is just shared and access requests is required from users.
func (api *PublicAPI) InviteUsersToCommunity(request *requests.InviteUsersToCommunity) (*protocol.MessengerResponse, error) {
return api.service.messenger.InviteUsersToCommunity(request)
}
Expand Down

0 comments on commit fa5b316

Please sign in to comment.