Fixed chat ui #19

This commit is contained in:
2025-10-15 21:34:44 +02:00
parent e7293aa625
commit 35ecc51098
3 changed files with 11 additions and 15 deletions
+5 -7
View File
@@ -14,13 +14,11 @@ export default function DMs() {
<MessageBox
app={app}
channelName={app.profiles[id]?.display_name || id}
messages={app.messages
.filter(
(m) =>
(m.channel_id === id && m.from === app.profile?.id) ||
(m.from === id && m.channel_id === app.profile?.id)
)
.toReversed()}
messages={app.messages.filter(
(m) =>
(m.channel_id === id && m.from === app.profile?.id) ||
(m.from === id && m.channel_id === app.profile?.id)
)}
sendMessage={(message) => {
app.node.current?.send(
JSON.stringify({
+1 -2
View File
@@ -28,8 +28,7 @@ export default function Server() {
app={app}
channelName="General"
messages={app.messages
.filter((m) => m.channel_id === "general")
.toReversed()}
.filter((m) => m.channel_id === "general")}
sendMessage={(message) => {
serverRef.current?.send(
JSON.stringify({