improve stuff
This commit is contained in:
parent
12ff17f794
commit
e4f7a403b7
1 changed files with 3 additions and 2 deletions
|
@ -194,7 +194,7 @@ export default function Home() {
|
|||
});
|
||||
}
|
||||
const canDelete = whoamiRef.current.admin || whoamiRef.current.id == message.user;
|
||||
const timeSent = new Date(message.timestamp * 1000).toLocaleTimeString();
|
||||
const timeSent = new Date(message.timestamp * 1000).toLocaleString();
|
||||
return <div className={styles.Message} key={message.id}>
|
||||
<h3 className={styles.MessageHeader}>
|
||||
{user?.id != null ?
|
||||
|
@ -339,6 +339,7 @@ export default function Home() {
|
|||
}
|
||||
return x;
|
||||
}));
|
||||
socket.emit('SIG_CHAT_CHGCHANNEL', { channel: data[0].name }, chgchannelChatRes);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -395,7 +396,7 @@ export default function Home() {
|
|||
|
||||
return (
|
||||
<ChatLayout
|
||||
title="Chat"
|
||||
title={`#${channel}`}
|
||||
subtitle={error}
|
||||
props={{
|
||||
channels,
|
||||
|
|
Loading…
Reference in a new issue