mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
trimmin chat message before sending
This commit is contained in:
@@ -281,7 +281,7 @@ export default class Chat extends React.Component {
|
||||
}
|
||||
if (this.socket && selectedUser) {
|
||||
const msg = {
|
||||
msg: currMsg,
|
||||
msg: currMsg.trim(),
|
||||
reciever: selectedUser,
|
||||
sender: user,
|
||||
date: new Date().getTime(),
|
||||
|
Reference in New Issue
Block a user