- {/*Navbar*/} - - - - - - - +
- {/*Side Bar 2*/} -
-
Chats
- - {this.state.chats.map(c => ( - - ))} -
- - {/*Main Section*/} -
- {/*Main Section Header*/} -
-

- {title} {this.state.namespace} -

-
- {/*Main Section Content*/} -
-
- {this.state.messages - .filter( - m => - (m.to[0] === '#' && m.to === this.state.namespace) || - (m.to[0] !== '#' && m.from === this.state.namespace) || - (m.from === this.state.user.socketId && - m.to === this.state.namespace) - ) - .map(m => ( -
-
{m.date}
-
{m.nick}
-
{m.text}
-
- ))} -
-
- - -
-
-
+ +