Skip to content

Commit

Permalink
only show node icon for inbound channel messages
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Nov 28, 2024
1 parent 728b712 commit 8a776c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/messages/MessageViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div v-for="message of messagesReversed" :key="message.id" class="flex max-w-xl mt-3" :class="{ 'ml-auto pl-4 md:pl-16': isMessageOutbound(message), 'mr-auto pr-4 md:pr-16': isMessageInbound(message) }">

<!-- inbound sender -->
<div v-if="isMessageInbound(message)" class="mr-2 mt-2">
<div v-if="isMessageInbound(message) && type === 'channel'" class="mr-2 mt-2">
<RouterLink :to="{ name: 'node', params: { nodeId: message.from }}">
<NodeIcon :node-id="message.from"/>
</RouterLink>
Expand Down

0 comments on commit 8a776c9

Please sign in to comment.