mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
66 lines
1.3 KiB
JavaScript
66 lines
1.3 KiB
JavaScript
import React from 'react';
|
|
import ContactsList from './contacts-list';
|
|
|
|
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() {
|
|
//
|
|
// };
|
|
|
|
// 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() {
|
|
return (
|
|
<div >
|
|
<div className='debug'>
|
|
|
|
messagerie todo
|
|
|
|
<ContactsList />
|
|
</div >
|
|
{/*<Conversation />*/}
|
|
</div >
|
|
);
|
|
}
|
|
|
|
};
|