import MessagingActionTypes from "./messaging.types";

export const toggleChatVisible = () => ({
  type: MessagingActionTypes.TOGGLE_CHAT_VISIBLE
  //payload: user
});

export const toggleConversationVisible = conversationId => ({
  type: MessagingActionTypes.TOGGLE_CONVERSATION_VISIBLE,
  payload: conversationId
});

export const openConversation = phone => ({
  type: MessagingActionTypes.OPEN_CONVERSATION,
  payload: phone
});

export const closeConversation = phone => ({
  type: MessagingActionTypes.CLOSE_CONVERSATION,
  payload: phone
});
