about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-09-13 04:05:34 +0530
committerGitHub <noreply@github.com>2023-09-12 15:35:34 -0700
commit9c72fcc9b49c9d8dc20da2bc381ae6daf078bff6 (patch)
treecd19e8cf523b19403555a146c90b5ff6cc879a88 /src
parent4977a5d2a3154083bc2ae63f9bf85d8b63140783 (diff)
downloadvoidsky-9c72fcc9b49c9d8dc20da2bc381ae6daf078bff6.tar.zst
share mute list link with did not handle (#1438)
Diffstat (limited to 'src')
-rw-r--r--src/state/models/content/list.ts4
-rw-r--r--src/view/screens/ProfileList.tsx4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/state/models/content/list.ts b/src/state/models/content/list.ts
index fc045e185..fd5074d8c 100644
--- a/src/state/models/content/list.ts
+++ b/src/state/models/content/list.ts
@@ -103,6 +103,10 @@ export class ListModel {
     return this.list?.viewer?.muted
   }
 
+  get creatorDid() {
+    return this.list?.creator.did
+  }
+
   // public api
   // =
 
diff --git a/src/view/screens/ProfileList.tsx b/src/view/screens/ProfileList.tsx
index 322f99486..11a847db3 100644
--- a/src/view/screens/ProfileList.tsx
+++ b/src/view/screens/ProfileList.tsx
@@ -97,9 +97,9 @@ export const ProfileListScreen = withAuthRequired(
     }, [store, list])
 
     const onPressShareList = React.useCallback(() => {
-      const url = toShareUrl(`/profile/${name}/lists/${rkey}`)
+      const url = toShareUrl(`/profile/${list.creatorDid}/lists/${rkey}`)
       shareUrl(url)
-    }, [name, rkey])
+    }, [list.creatorDid, rkey])
 
     const renderEmptyState = React.useCallback(() => {
       return <EmptyState icon="users-slash" message="This list is empty!" />