Merge pull request #1010 from embark-framework/fix_whisper

fix whisper in embark-ui
This commit is contained in:
Eric Mastro 2018-10-30 20:55:20 +01:00 committed by GitHub
commit 4e7ae9aa17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,15 @@ import PropTypes from "prop-types";
import React, {Component} from 'react';
import connect from "react-redux/es/connect/connect";
import { Alert } from 'reactstrap';
import {messageSend, messageListen} from "../actions";
import {messageSend, messageListen, versions} from "../actions";
import Communication from "../components/Communication";
import {getMessages, getMessageChannels, isOldWeb3, isWeb3Enabled} from "../reducers/selectors";
class CommunicationContainer extends Component {
componentDidMount() {
this.props.fetchVersions();
}
sendMessage(topic, message) {
this.props.messageSend({topic, message});
}
@ -65,7 +69,7 @@ export default connect(
mapStateToProps,
{
messageSend: messageSend.request,
messageListen: messageListen.request
messageListen: messageListen.request,
fetchVersions: versions.request
}
)(CommunicationContainer);