Skip to content

Commit

Permalink
Adjuted the timestamp in the chat messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Pudi-Sravan committed Jul 3, 2024
1 parent c092388 commit 3649287
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Front_end/homepage/channels/channelchat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const Channelchats = () => {
id: uuid(),
text: text,
senderId: currentUser[0].id,
date: new Date().toISOString(),
date: new Date().toLocaleString(),
image: puburl,
},
],
Expand Down
1 change: 1 addition & 0 deletions src/Front_end/homepage/channels/channelmessage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const ChannelMessage = ({ message }) => {
</div>
<div className={channelmessageCSS.messageinfo}>
<img src={message?.image} alt="" className={channelmessageCSS.img} />
<video src={message?.image} alt="" className={channelmessageCSS.img} loop autoPlay muted></video>
<span className={channelmessageCSS.date}>{message?.date}</span>
</div>
<div className={channelmessageCSS.messagecontent}>
Expand Down
1 change: 1 addition & 0 deletions src/Front_end/homepage/dm chats/message.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const Message = ({ message }) => {
</div>
<div className={messageCSS.messageinfo}>
<img src={message?.image} alt="" className={messageCSS.img} />
<video src={message?.image} alt="" className={messageCSS.img} autoPlay loop muted></video>
<span className={messageCSS.date}>{message?.date}</span>
</div>
<div className={messageCSS.messagecontent}>
Expand Down

0 comments on commit 3649287

Please sign in to comment.