diff --git a/src/app/components/ChatEnable.svelte b/src/app/components/ChatEnable.svelte deleted file mode 100644 index 9e5499de..00000000 --- a/src/app/components/ChatEnable.svelte +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Enable Messages - Do you want to enable direct messages? - -

- By default, direct messages are disabled, since loading them requires - {PLATFORM_NAME} to download and decrypt a lot of data. -

-

- If you'd like to enable them, please make sure your signer is set up to to auto-approve - requests to decrypt data. -

-
- - - - -
diff --git a/src/app/components/PrimaryNav.svelte b/src/app/components/PrimaryNav.svelte index 081d9829..49372789 100644 --- a/src/app/components/PrimaryNav.svelte +++ b/src/app/components/PrimaryNav.svelte @@ -2,7 +2,7 @@ import type {Snippet} from "svelte" import {goto} from "$app/navigation" import {splitAt} from "@welshman/lib" - import {userProfile, shouldUnwrap} from "@welshman/app" + import {userProfile} from "@welshman/app" import Widget from "@assets/icons/widget.svg?dataurl" import Compass from "@assets/icons/compass.svg?dataurl" import Letter from "@assets/icons/letter.svg?dataurl" @@ -14,7 +14,6 @@ import ImageIcon from "@lib/components/ImageIcon.svelte" import Divider from "@lib/components/Divider.svelte" import PrimaryNavItem from "@lib/components/PrimaryNavItem.svelte" - import ChatEnable from "@app/components/ChatEnable.svelte" import MenuSettings from "@app/components/MenuSettings.svelte" import PrimaryNavItemSpace from "@app/components/PrimaryNavItemSpace.svelte" import {userSpaceUrls, PLATFORM_RELAYS, PLATFORM_LOGO} from "@app/core/state" @@ -29,7 +28,7 @@ const showSettingsMenu = () => pushModal(MenuSettings) - const openChat = () => ($shouldUnwrap ? goto("/chat") : pushModal(ChatEnable, {next: "/chat"})) + const openChat = () => goto("/chat") let windowHeight = $state(0) diff --git a/src/app/components/ProfileDetail.svelte b/src/app/components/ProfileDetail.svelte index 3dbf68c4..7a85105f 100644 --- a/src/app/components/ProfileDetail.svelte +++ b/src/app/components/ProfileDetail.svelte @@ -4,7 +4,6 @@ import {removeUndefined} from "@welshman/lib" import {ManagementMethod} from "@welshman/util" import { - shouldUnwrap, manageRelay, deriveProfile, displayProfileByPubkey, @@ -30,7 +29,6 @@ import ProfileInfo from "@app/components/ProfileInfo.svelte" import EventInfo from "@app/components/EventInfo.svelte" import ProfileBadges from "@app/components/ProfileBadges.svelte" - import ChatEnable from "@app/components/ChatEnable.svelte" import {pubkeyLink, deriveUserIsSpaceAdmin, deriveSpaceBannedPubkeyItems} from "@app/core/state" import {pushModal} from "@app/util/modal" import {pushToast} from "@app/util/toast" @@ -57,7 +55,7 @@ const showInfo = () => pushModal(EventInfo, {url, event: $profile!.event}) - const openChat = () => ($shouldUnwrap ? goto(chatPath) : pushModal(ChatEnable, {next: chatPath})) + const openChat = () => goto(chatPath) const toggleMenu = (pubkey: string) => { showMenu = !showMenu diff --git a/src/routes/chat/+layout.svelte b/src/routes/chat/+layout.svelte index 20bb65ab..06244c98 100644 --- a/src/routes/chat/+layout.svelte +++ b/src/routes/chat/+layout.svelte @@ -1,7 +1,9 @@ diff --git a/src/routes/home/+page.svelte b/src/routes/home/+page.svelte index 1b221d46..cd3e20bc 100644 --- a/src/routes/home/+page.svelte +++ b/src/routes/home/+page.svelte @@ -1,7 +1,6 @@