chore: deprecate InviteUsersToCommunity
This commit is contained in:
parent
f89eee9f40
commit
fa5b316324
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue