Styling changes for messaging.
This commit is contained in:
@@ -3,7 +3,14 @@ import { sendMessageFailure, sendMessageSuccess } from "./messaging.actions";
|
||||
import MessagingActionTypes from "./messaging.types";
|
||||
import axios from "axios";
|
||||
import { sendEmailFailure } from "../email/email.actions";
|
||||
import { withApollo } from "react-apollo";
|
||||
|
||||
export function* onOpenChatByPhone() {
|
||||
yield takeLatest(MessagingActionTypes.OPEN_CHAT_BY_PHONE, openChatByPhone);
|
||||
}
|
||||
export function* openChatByPhone({ payload: phone, client }) {
|
||||
console.log("Payload: Phone, Client", phone, client);
|
||||
}
|
||||
export function* onSendMessage() {
|
||||
yield takeLatest(MessagingActionTypes.SEND_MESSAGE, sendMessage);
|
||||
}
|
||||
@@ -22,5 +29,5 @@ export function* sendMessage({ payload }) {
|
||||
}
|
||||
|
||||
export function* messagingSagas() {
|
||||
yield all([call(onSendMessage)]);
|
||||
yield all([call(onSendMessage), call(onOpenChatByPhone)]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user