Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5659 | Rev 5662 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5659 Rev 5661
Línea 872... Línea 872...
872
            if ($conversation) {
872
            if ($conversation) {
Línea 873... Línea 873...
873
 
873
 
Línea 874... Línea 874...
874
                if ($conversation[0]->sender_id && $conversation[0]->sender_id == $currentUser->id) {
874
                if ($conversation[0]->sender_id && $conversation[0]->sender_id == $currentUser->id) {
-
 
875
 
-
 
876
                    return new JsonModel($this->deleteConversation($conversation[0]));
875
 
877
                } elseif ($conversation[0]->receiver_id && $conversation[0]->receiver_id == $currentUser->id) {
Línea 876... Línea 878...
876
                    return new JsonModel($this->deleteConversation($conversation[0]));
878
                    return new JsonModel($this->deleteConversation($conversation[0]));
877
                }
879
                }
878
 
880
 
Línea 901... Línea 903...
901
 
903
 
902
    private function deleteConversation($conversation)
904
    private function deleteConversation($conversation)
903
    {
905
    {
904
        $conversationMapper = ConversationMapper::getInstance($this->adapter);
906
        $conversationMapper = ConversationMapper::getInstance($this->adapter);
-
 
907
        $conversation->sender_status = Conversation::STATUS_DELETED;
Línea 905... Línea 908...
905
        $conversation->sender_status = Conversation::STATUS_DELETED;
908
        $conversation->receiber_status = Conversation::STATUS_DELETED;
906
 
909
 
907
        if ($conversationMapper->update($conversation)) {
910
        if ($conversationMapper->update($conversation)) {
908
            $response = [
911
            $response = [