From fa5b31632490afe44ba0ffb968ee7e0d1a6c97e8 Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Wed, 26 Jul 2023 11:59:11 +0200 Subject: [PATCH] chore: deprecate InviteUsersToCommunity --- protocol/messenger_communities.go | 2 ++ services/ext/api.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go index d48e4fd9e95..a77c26f8b89 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -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 diff --git a/services/ext/api.go b/services/ext/api.go index b6a2e8a7eb1..d3d4605392d 100644 --- a/services/ext/api.go +++ b/services/ext/api.go @@ -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) }