Open shokri-navid opened 2 hours ago
I found that the API call for searching sharees is:
/ocs/v2.php/apps/files_sharing/api/v1/sharees
and the code is:
So, It seems We should add another Share Type in IShare file:
So I decided to add this type there:
public const TYPE_INVITATION_LINK = 16;
in calling the API this flow is executed:
we should decide whether need to register a new ShareProvider class or create a new one that is inherited from ShareByMailProvider class?
So it seems we should create our own share provider like ShareByEmailInvitationProvider. I looked into ShareByMailProvider there: https://github.com/SUNET/nextcloud-server/blob/master/apps/sharebymail/lib/ShareByMailProvider.php
and it has a specific template engine and data access layer inside the class code.
:eyes: I guess we should create our own application like shareByInvitationCode to put our db migrations and required helper classes there
inside the sender panel when the user types an email in the search box like below:
we must add another option below the email share link to enable user to sent invitation link to the recipient.