summaryrefslogtreecommitdiff
path: root/lib/lsg_web/live/chat_live.html.heex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/lsg_web/live/chat_live.html.heex7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/lsg_web/live/chat_live.html.heex b/lib/lsg_web/live/chat_live.html.heex
index 717be4f..fc1f582 100644
--- a/lib/lsg_web/live/chat_live.html.heex
+++ b/lib/lsg_web/live/chat_live.html.heex
@@ -27,14 +27,11 @@
<%= if is_map(message) && Map.get(message, :__struct__) == IRC.Message do %>
<li class="flex gap-2 place-items-center message"
data-account-id={message.account.id}>
- <LSGWeb.Component.naive_date_time_utc datetime={message.at} format="time-24-with-seconds" />
- <span class="inline-block font-bold flex-none cursor-default"><%= message.sender.nick %></span>
- <span class="inline-block flex-grow cursor-default">
- <LSGWeb.MessageComponent.content
+ <LSGWeb.MessageComponent.content
+ message={message}
self={message.account.id == @account_id}
text={message.text}
/>
- </span>
</li>
<% end %>