export const fetchChatrooms = (userId) => dispatch => (
        ApiUtil.fetchChatrooms(userId)
                .then(chatrooms => dispatch(receiveChatrooms(chatrooms)),
                err => (dispatch(receiveChatroomErrors(err.responseJSON)))       
        )