import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './styles'; import MessageForm from './message-form/component'; import MessageList from './message-list/component'; import Icon from '../icon/component'; import ChatService from './service'; const ELEMENT_ID = 'chat-messages'; export default class Chat extends Component { constructor(props) { super(props); this.closeChat = this.closeChat.bind(this); } render() { const { chatID, chatName, title, messages, scrollPosition, hasUnreadMessages, lastReadMessageTime, isChatLocked, actions, } = this.props; return (
{title} { ((this.props.chatID == 'public') ? null : ) }
); } closeChat() { ChatService.createClosedChatSession(this.props.chatID); } }