Rename ChannelThread to ChannelConversation
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<div class="overflow-auto pt-3">
|
<div class="overflow-auto pt-3">
|
||||||
<ChannelMessage {url} {room} {event} thunk={$thunks[event.id]} showPubkey isThread />
|
<ChannelMessage {url} {room} {event} thunk={$thunks[event.id]} showPubkey isHead />
|
||||||
{#each sortBy(e => e.created_at, $replies) as reply (reply.id)}
|
{#each sortBy(e => e.created_at, $replies) as reply (reply.id)}
|
||||||
<ChannelMessage {url} {room} event={reply} thunk={$thunks[reply.id]} showPubkey />
|
<ChannelMessage {url} {room} event={reply} thunk={$thunks[reply.id]} showPubkey />
|
||||||
{/each}
|
{/each}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
import ThunkStatus from "@app/components/ThunkStatus.svelte"
|
import ThunkStatus from "@app/components/ThunkStatus.svelte"
|
||||||
import ReplySummary from "@app/components/ReplySummary.svelte"
|
import ReplySummary from "@app/components/ReplySummary.svelte"
|
||||||
import ReactionSummary from "@app/components/ReactionSummary.svelte"
|
import ReactionSummary from "@app/components/ReactionSummary.svelte"
|
||||||
import ChannelThread from "@app/components/ChannelThread.svelte"
|
import ChannelConversation from "@app/components/ChannelConversation.svelte"
|
||||||
import ChannelMessageEmojiButton from "@app/components/ChannelMessageEmojiButton.svelte"
|
import ChannelMessageEmojiButton from "@app/components/ChannelMessageEmojiButton.svelte"
|
||||||
import ChannelMessageMenuButton from "@app/components/ChannelMessageMenuButton.svelte"
|
import ChannelMessageMenuButton from "@app/components/ChannelMessageMenuButton.svelte"
|
||||||
import ChannelMessageMenuMobile from "@app/components/ChannelMessageMenuMobile.svelte"
|
import ChannelMessageMenuMobile from "@app/components/ChannelMessageMenuMobile.svelte"
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
export let event: TrustedEvent
|
export let event: TrustedEvent
|
||||||
export let thunk: Thunk
|
export let thunk: Thunk
|
||||||
export let showPubkey = false
|
export let showPubkey = false
|
||||||
export let isThread = false
|
export let isHead = false
|
||||||
|
|
||||||
const profile = deriveProfile(event.pubkey)
|
const profile = deriveProfile(event.pubkey)
|
||||||
const profileDisplay = deriveProfileDisplay(event.pubkey)
|
const profileDisplay = deriveProfileDisplay(event.pubkey)
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
} else {
|
} else {
|
||||||
const root = $rootEvent || event
|
const root = $rootEvent || event
|
||||||
|
|
||||||
pushDrawer(ChannelThread, {url, room, event: root})
|
pushDrawer(ChannelConversation, {url, room, event: root})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row-2 ml-12">
|
<div class="row-2 ml-12">
|
||||||
{#if !isThread}
|
{#if !isHead}
|
||||||
<ReplySummary {event} />
|
<ReplySummary {event} />
|
||||||
{/if}
|
{/if}
|
||||||
<ReactionSummary {event} {onReactionClick} />
|
<ReactionSummary {event} {onReactionClick} />
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
import Icon from "@lib/components/Icon.svelte"
|
import Icon from "@lib/components/Icon.svelte"
|
||||||
import EmojiPicker from "@lib/components/EmojiPicker.svelte"
|
import EmojiPicker from "@lib/components/EmojiPicker.svelte"
|
||||||
import EventInfo from "@app/components/EventInfo.svelte"
|
import EventInfo from "@app/components/EventInfo.svelte"
|
||||||
import ChannelThread from "@app/components/ChannelThread.svelte"
|
import ChannelConversation from "@app/components/ChannelConversation.svelte"
|
||||||
import ConfirmDelete from "@app/components/ConfirmDelete.svelte"
|
import ConfirmDelete from "@app/components/ConfirmDelete.svelte"
|
||||||
import {publishReaction} from "@app/commands"
|
import {publishReaction} from "@app/commands"
|
||||||
import {pushModal, pushDrawer} from "@app/modal"
|
import {pushModal, pushDrawer} from "@app/modal"
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
const showEmojiPicker = () => pushModal(EmojiPicker, {onClick: onEmoji}, {replaceState: true})
|
const showEmojiPicker = () => pushModal(EmojiPicker, {onClick: onEmoji}, {replaceState: true})
|
||||||
|
|
||||||
const showConversation = () => pushDrawer(ChannelThread, {url, room, event}, {replaceState: true})
|
const showConversation = () => pushDrawer(ChannelConversation, {url, room, event}, {replaceState: true})
|
||||||
|
|
||||||
const showInfo = () => pushModal(EventInfo, {event}, {replaceState: true})
|
const showInfo = () => pushModal(EventInfo, {event}, {replaceState: true})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user