Compare commits

..

1 Commits

2 changed files with 9 additions and 2 deletions
+2
View File
@@ -772,6 +772,8 @@ export const getSpaceRoomsFromGroupList = (url: string, groupList: List | undefi
export const userGroupList = makeUserData(groupListsByPubkey, loadGroupList)
export const deriveUserGroupList = userGroupList
export const loadUserGroupList = makeUserLoader(loadGroupList)
export const userSpaceUrls = derived(userGroupList, getSpaceUrlsFromGroupList)
+7 -2
View File
@@ -15,7 +15,12 @@
import SpaceJoin from "@app/components/SpaceJoin.svelte"
import {pushModal} from "@app/util/modal"
import {makeSpacePath} from "@app/util/routes"
import {decodeRelay, userGroupList, relaysPendingTrust, userSpaceUrls} from "@app/core/state"
import {
decodeRelay,
deriveUserGroupList,
relaysPendingTrust,
userSpaceUrls,
} from "@app/core/state"
import {deriveRelayAuthError} from "@app/core/commands"
type Props = {
@@ -45,7 +50,7 @@
// Direct links skip Discover — prompt to join when relay is not in the user's space list.
const shouldPromptJoin = $derived.by(() => {
void $userGroupList
void $deriveUserGroupList
return (
Boolean($pubkey) &&