1789 Fix dm presenter prop name for backlinks (#1791)

Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
Denis Bunakalya 2022-05-18 15:22:53 +03:00 committed by GitHub
parent aa4f882d81
commit 9704d950e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -19,15 +19,15 @@
import { getSpaceLink, getDmName } from '../utils'
export let dm: DirectMessage
export let value: DirectMessage
const client = getClient()
$: icon = client.getHierarchy().getClass(dm._class).icon
$: link = getSpaceLink(dm._id)
$: icon = client.getHierarchy().getClass(value._class).icon
$: link = getSpaceLink(value._id)
</script>
{#if dm}
{#await getDmName(client, dm) then name}
{#if value}
{#await getDmName(client, value) then name}
<a class="flex-presenter" href={link}>
<div class="icon">
{#if icon}

View File

@ -171,7 +171,7 @@
{#if channel?._class === chunter.class.Channel}
<ChannelPresenter value={channel} />
{:else if channel}
<DmPresenter dm={channel} />
<DmPresenter value={channel} />
{/if}
{/await}
{#await getParticipants(comments, parent, employees) then participants}