Skip to content

Commit

Permalink
Merge pull request #655 from ephemeraHQ/ar/group-invites-links
Browse files Browse the repository at this point in the history
feat: Group Invite Universal Links
  • Loading branch information
alexrisch authored Sep 5, 2024
2 parents 38661d4 + 8d32501 commit 80181e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
<category android:name="android.intent.category.BROWSABLE"/>
<data android:host="dev.getconverse.app" android:pathPrefix="/dm" android:scheme="https"/>
<data android:host="dev.converse.xyz" android:pathPrefix="/dm" android:scheme="https"/>
<data android:host="dev.getconverse.app" android:pathPrefix="/group-invite" android:scheme="https"/>
<data android:host="dev.converse.xyz" android:pathPrefix="/group-invite" android:scheme="https"/>
<data android:host="dev.getconverse.app" android:pathPrefix="/coinbase" android:scheme="https"/>
<data android:host="dev.converse.xyz" android:pathPrefix="/coinbase" android:scheme="https"/>
<data android:host="dev.getconverse.app" android:pathPrefix="/desktopconnect" android:scheme="https"/>
Expand Down
2 changes: 1 addition & 1 deletion screens/Navigation/GroupInviteNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type GroupInviteNavParams = {
};

export const GroupInviteScreenConfig = {
path: "/groupInvite/:groupInviteId",
path: "/group-invite/:groupInviteId",
};

export default function GroupInviteNav() {
Expand Down
3 changes: 3 additions & 0 deletions screens/Navigation/navHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export const getConverseStateFromPath = (path: string, options: any) => {
} else if (pathForState.startsWith("dm/")) {
const peer = pathForState.slice(3).trim().toLowerCase();
pathForState = `conversation?mainConversationWithPeer=${peer}&focus=true`;
} else if (pathForState.startsWith("groupInvite")) {
// TODO: Remove this once enough users have updated (September 30, 2024)
pathForState = pathForState.replace("groupInvite", "group-invite");
}
const state = getStateFromPath(pathForState, options);
return state;
Expand Down

0 comments on commit 80181e9

Please sign in to comment.