1234567891011121314151617181920 |
- const ChatConstants = require('../constants/ChatConstants');
- const AppDispatcher = require('../dispatcher/AppDispatcher');
- const ChatActions = {
- toggleVisibility() {
- AppDispatcher.handleViewAction({
- actionType: ChatConstants.TOGGLE_VISIBILITY
- });
- },
- submitMessage(message, className, received) {
- AppDispatcher.handleViewAction({
- actionType: ChatConstants.SUBMIT_MESSAGE,
- message: message,
- className: className,
- received: received
- });
- }
- };
- module.exports = ChatActions;
|