Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QSS: Add relay server parameter to CREATE/LAUNCH_COMMUNITY #2312

Open
leblowl opened this issue Feb 21, 2024 · 1 comment
Open

QSS: Add relay server parameter to CREATE/LAUNCH_COMMUNITY #2312

leblowl opened this issue Feb 21, 2024 · 1 comment
Assignees

Comments

@leblowl
Copy link
Collaborator

leblowl commented Feb 21, 2024

We can add a new field to the Community model, storageServiceInviteUrl for the relay service URL. At some point we can also add inviterOnionAddress or similar for the inviter’s onion address when we get to integrating that, but we can deal with that later. I think adding things to the Community model is easy for now, but we may want to separate this data out into its own InviteData model or something at some point.

We can also add storageServiceInviteUrl to the CreateNetworkPayload and pass it from deepLinkSaga and customProtocolSaga to the createNetworkSaga. createNetworkSaga saves it in the Community data model currently. Then launchCommunitySaga can include it in the InitCommunityPayload when calling LAUNCH_COMMUNITY. On the backend launchCommunity can connect to the storage service with storageServiceInviteUrl and then use the returned data to connect to peers as usual. It can also store these pieces of data in IndexDB as usual.

launchCommunity can return a Community object with the community ID, PSK, ownerOrbitDBIdentity and peer list and then the frontend can update its state with these pieces of data.

Once this is in place, we can remove the DOWNLOAD_INVITE_DATA event.

@leblowl leblowl added this to Quiet Feb 21, 2024
@leblowl leblowl converted this from a draft issue Feb 21, 2024
@holmesworcester holmesworcester moved this from Next Sprint to Sprint in Quiet Feb 27, 2024
@leblowl leblowl moved this from Sprint to Next Sprint in Quiet Feb 27, 2024
@leblowl leblowl changed the title Relay: Add relay server parameter to CREATE/LAUNCH_COMMUNITY QSS: Add relay server parameter to CREATE/LAUNCH_COMMUNITY Mar 4, 2024
@leblowl leblowl moved this from Next Sprint to Sprint in Quiet Apr 4, 2024
@EmiM EmiM moved this from Sprint to In progress in Quiet Apr 12, 2024
@EmiM
Copy link
Contributor

EmiM commented Apr 15, 2024

#2438

@EmiM EmiM moved this from In progress to Waiting for review in Quiet Apr 22, 2024
@EmiM EmiM moved this from Waiting for review to Merged in Quiet Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants