chore: deprecate InviteUsersToCommunity

This commit is contained in:
Patryk Osmaczko 2023-07-26 11:59:11 +02:00 committed by osmaczko
parent f89eee9f40
commit fa5b316324
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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)
}