|
|
@ -53,6 +53,9 @@ const Conversations = (() => {
|
|
|
|
const getCustomerProfile = async (colisn) => {
|
|
|
|
const getCustomerProfile = async (colisn) => {
|
|
|
|
const data = await fetchCustomerProfile(colisn);
|
|
|
|
const data = await fetchCustomerProfile(colisn);
|
|
|
|
dispatch(receivedCustomerProfile(data));
|
|
|
|
dispatch(receivedCustomerProfile(data));
|
|
|
|
|
|
|
|
if (isEmpty(data)) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (!isEmpty(data.conversation)) {
|
|
|
|
if (!isEmpty(data.conversation)) {
|
|
|
|
dispatch(addConversationList(data.conversations));
|
|
|
|
dispatch(addConversationList(data.conversations));
|
|
|
|
dispatch(setCurrentConversation(data.conversation[0]));
|
|
|
|
dispatch(setCurrentConversation(data.conversation[0]));
|
|
|
|