function updateConversation(conversation) {
        const current = _.find(conversationsCached, { ID: conversation.ID });

        if (current) {
            _.extend(
                current,
                conversation,
                {
                    Labels: getLabels(current, conversation),
                    Senders: filterSenderConversation(current.Senders, conversation.Senders)
                },
                extractContextDatas(current, conversation)
            );
            delete current.LabelIDsAdded;
            delete current.LabelIDsRemoved;
            manageTimes(current.ID);
            dispatcher.labelsElement('', current);
            dispatcher.foldersElement('', current);
            return;
        }

        _.extend(conversation, extractContextDatas(conversation, conversation));
        conversationsCached.push(conversation);
        manageTimes(conversation.ID);
        dispatcher.labelsElement('', conversation);
        dispatcher.foldersElement('', conversation);
    }
/**
     * Update conversation cached
     * @param {Object} conversation
     */
Update conversation cached
@param {Object} conversation
Update conversation cached @param { Object } conversation
function updateConversation(conversation) {
        const current = _.find(conversationsCached, { ID: conversation.ID });
        if (current) {
            _.extend(
                current,
                conversation,
                {
                    Labels: getLabels(current, conversation),
                    Senders: filterSenderConversation(current.Senders, conversation.Senders)
                },
                extractContextDatas(current, conversation)
            );
            delete current.LabelIDsAdded;
            delete current.LabelIDsRemoved;
            manageTimes(current.ID);
            dispatcher.labelsElement('', current);
            dispatcher.foldersElement('', current);
            return;
        }
        _.extend(conversation, extractContextDatas(conversation, conversation));
        conversationsCached.push(conversation);
        manageTimes(conversation.ID);
        dispatcher.labelsElement('', conversation);
        dispatcher.foldersElement('', conversation);
    }
function updateConversation ( conversation ) { const current = _ . find ( conversationsCached , { ID : conversation . ID } ) ; if ( current ) { _ . extend ( current , conversation , { Labels : getLabels ( current , conversation ) , Senders : filterSenderConversation ( current . Senders , conversation . Senders ) } , extractContextDatas ( current , conversation ) ) ; delete current . LabelIDsAdded ; delete current . LabelIDsRemoved ; manageTimes ( current . ID ) ; dispatcher . labelsElement ( '' , current ) ; dispatcher . foldersElement ( '' , current ) ; return ; } _ . extend ( conversation , extractContextDatas ( conversation , conversation ) ) ; conversationsCached . push ( conversation ) ; manageTimes ( conversation . ID ) ; dispatcher . labelsElement ( '' , conversation ) ; dispatcher . foldersElement ( '' , conversation ) ; }
Update conversation cached
 @param {Object} conversation
Update conversation cached @param { Object } conversation