mirror of https://framagit.org/tykayn/mastodon.git
43 lines
874 B
JavaScript
43 lines
874 B
JavaScript
import React from 'react';
|
|
import ContactsList from './contacts-list';
|
|
import ConversationStack from './conversationStack';
|
|
|
|
/**
|
|
* main component for IM, gathers contact list and list of conversations
|
|
*/
|
|
export default class InstantMessaging extends React.PureComponent {
|
|
|
|
// static propTypes = {
|
|
// following : PropTypes.array,
|
|
// conversations: PropTypes.array,
|
|
// };
|
|
// static defaultProps = {
|
|
// threadsCompile: true,
|
|
// };
|
|
// openConversationWith(account) {
|
|
// let conversationFound = account;
|
|
// if conversation exist, focus on it
|
|
// if (conversationFound) {
|
|
//
|
|
// } else {
|
|
//
|
|
// }
|
|
// else, create conversation and focus on it
|
|
// };
|
|
|
|
// submitCompose() {
|
|
//
|
|
// };
|
|
|
|
render() {
|
|
return (
|
|
<div className='main-instant-messaging'>
|
|
|
|
<ContactsList />
|
|
<ConversationStack />
|
|
</div >
|
|
);
|
|
}
|
|
|
|
};
|