Get chat back to working ish
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
import PrimaryNav from "@app/components/PrimaryNav.svelte"
|
||||
import {modals, clearModal} from "@app/modal"
|
||||
import {theme} from "@app/theme"
|
||||
import {INDEXER_RELAYS, topicsByUrl, relaysByMessage} from "@app/state"
|
||||
import {INDEXER_RELAYS, topicsByUrl} from "@app/state"
|
||||
import {loadUserData} from "@app/commands"
|
||||
import * as state from "@app/state"
|
||||
|
||||
@@ -77,7 +77,6 @@
|
||||
store: handles,
|
||||
},
|
||||
topicsByUrl: storageAdapters.fromMapStore(topicsByUrl),
|
||||
relaysByMessage: storageAdapters.fromMapStore(relaysByMessage),
|
||||
publishStatus: storageAdapters.fromObjectStore(publishStatusData),
|
||||
freshness: storageAdapters.fromObjectStore(freshness),
|
||||
plaintext: storageAdapters.fromObjectStore(plaintext),
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
import SpaceExit from "@app/components/SpaceExit.svelte"
|
||||
import SpaceJoin from "@app/components/SpaceJoin.svelte"
|
||||
import RoomCreate from "@app/components/RoomCreate.svelte"
|
||||
import {userMembership, decodeNEvent} from "@app/state"
|
||||
import {userMembership, decodeNRelay} from "@app/state"
|
||||
import {pushModal} from "@app/modal"
|
||||
import {makeSpacePath} from "@app/routes"
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
let showMenu = false
|
||||
|
||||
$: url = decodeNEvent($page.params.nrelay)
|
||||
$: url = decodeNRelay($page.params.nrelay)
|
||||
$: rooms = sort($userMembership?.topicsByUrl?.get(url) || [])
|
||||
</script>
|
||||
|
||||
|
||||
@@ -17,10 +17,11 @@
|
||||
import Spinner from "@lib/components/Spinner.svelte"
|
||||
import ChatMessage from "@app/components/ChatMessage.svelte"
|
||||
import ChatCompose from "@app/components/ChatCompose.svelte"
|
||||
import {deriveChat, MESSAGE, REPLY} from "@app/state"
|
||||
import {decodeNRelay, makeChatId, deriveChat, MESSAGE, REPLY} from "@app/state"
|
||||
|
||||
const {url, topic} = $page.params
|
||||
const chat = deriveChat(url)
|
||||
const {nrelay, topic = ""} = $page.params
|
||||
const url = decodeNRelay(nrelay)
|
||||
const chat = deriveChat(makeChatId(url, topic))
|
||||
|
||||
const assertEvent = (e: any) => e as TrustedEvent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user