Get rid of ChatEnable, automatically enable unwrapping when the user first visits the dms page. Closes #72

This commit is contained in:
Jon Staab
2026-02-18 16:02:49 -08:00
parent f5c768d6a7
commit 0fa26c8d0a
5 changed files with 10 additions and 74 deletions
+1 -3
View File
@@ -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