- {/*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 => { - const rowColor = m.from === 'server' ? 'text-secondary' : '' - return ( -
-
{m.date}
- {m.from === 'server' ? null : ( -
{m.nick}:
- )} -
{m.text}
-
- ) - })} -
-
- - -
-
-
+ +