2019-12-21 17:03:26 +01:00
|
|
|
import React from 'react';
|
|
|
|
import ContactsList from './contacts-list';
|
2020-01-07 12:21:34 +01:00
|
|
|
import ConversationStack from './conversationStack';
|
2019-12-21 17:03:26 +01:00
|
|
|
|
2020-01-08 10:12:38 +01:00
|
|
|
/**
|
|
|
|
* main component for IM, gathers contact list and list of conversations
|
|
|
|
*/
|
2019-12-23 17:00:57 +01:00
|
|
|
export default class InstantMessaging extends React.PureComponent {
|
2019-12-21 17:03:26 +01:00
|
|
|
|
|
|
|
// static propTypes = {
|
2019-12-23 17:00:57 +01:00
|
|
|
// following : PropTypes.array,
|
|
|
|
// conversations: PropTypes.array,
|
|
|
|
// };
|
|
|
|
// static defaultProps = {
|
|
|
|
// threadsCompile: true,
|
2019-12-21 17:03:26 +01:00
|
|
|
// };
|
|
|
|
// openConversationWith(account) {
|
|
|
|
// let conversationFound = account;
|
|
|
|
// if conversation exist, focus on it
|
|
|
|
// if (conversationFound) {
|
|
|
|
//
|
|
|
|
// } else {
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
// else, create conversation and focus on it
|
|
|
|
// };
|
|
|
|
|
|
|
|
// submitCompose() {
|
|
|
|
//
|
|
|
|
// };
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2020-01-08 10:12:38 +01:00
|
|
|
<div className='main-instant-messaging'>
|
2019-12-21 17:03:26 +01:00
|
|
|
|
2020-01-07 12:21:34 +01:00
|
|
|
<ContactsList />
|
|
|
|
<ConversationStack />
|
2019-12-21 17:03:26 +01:00
|
|
|
</div >
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|