Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fc6a3e44d4 |
@@ -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)
|
||||
|
||||
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user