2019-12-21 17:03:26 +01:00
|
|
|
import React from 'react';
|
|
|
|
import ContactsList from './contacts-list';
|
2019-12-22 18:48:13 +01:00
|
|
|
import Conversation from './conversations';
|
2019-12-21 17:03:26 +01:00
|
|
|
|
|
|
|
export default class Messaging extends React.PureComponent {
|
|
|
|
|
|
|
|
// static propTypes = {
|
|
|
|
// following : ImmutablePropTypes.list,
|
|
|
|
// conversations: ImmutablePropTypes.list,
|
|
|
|
// };
|
|
|
|
|
|
|
|
// openConversationWith(account) {
|
|
|
|
// let conversationFound = account;
|
|
|
|
// if conversation exist, focus on it
|
|
|
|
// if (conversationFound) {
|
|
|
|
//
|
|
|
|
// } else {
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
// else, create conversation and focus on it
|
|
|
|
// };
|
|
|
|
|
|
|
|
// submitCompose() {
|
|
|
|
//
|
|
|
|
// };
|
|
|
|
|
|
|
|
// constructor() {
|
|
|
|
// super();
|
|
|
|
//
|
|
|
|
// this.props.conversations = [
|
|
|
|
// {
|
|
|
|
// withAccount: '@machin',
|
|
|
|
// messages : [],
|
|
|
|
// opened : true,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// withAccount: '@chuck',
|
|
|
|
// messages : [],
|
|
|
|
// opened : false,
|
|
|
|
// },
|
|
|
|
// ];
|
|
|
|
// this.props.following = [
|
|
|
|
// { username: 'wulfila', handle: '@wulfila' },
|
|
|
|
// { username: 'machin', handle: '@machin' },
|
|
|
|
// { username: 'chuck norris', handle: '@chuck' },
|
|
|
|
// ];
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
|
|
|
|
render() {
|
|
|
|
// const contactlist = null;
|
|
|
|
return (
|
|
|
|
<div >
|
|
|
|
messagerie todo
|
|
|
|
|
|
|
|
<ContactsList />
|
2019-12-22 18:48:13 +01:00
|
|
|
<Conversation />
|
2019-12-21 17:03:26 +01:00
|
|
|
</div >
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|