Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16799 Rev 16800
Línea 273... Línea 273...
273
                            }
273
                            }
274
                        }
274
                        }
275
                    } 
275
                    } 
276
                }
276
                }
Línea 277... Línea 277...
277
                
277
                
-
 
278
                $owner = $companyUserMapper->fetchOwnerByCompanyId($currentCompany->id);   
-
 
279
                
278
                $owner = $companyUserMapper->fetchOwnerByCompanyId($currentCompany->id);                
280
 
Línea 279... Línea 281...
279
                $records = $companyUserMapper->fetchAllActivesByCompanyIdAndUserIds($currentCompany->id, $user_ids);
281
                $records = $companyUserMapper->fetchAllActivesByCompanyIdAndUserIds($currentCompany->id, $user_ids);
280
                
282
                
281
                if(empty($records)) {
283
                if(empty($records)) {
Línea 313... Línea 315...
313
                
315
                
314
                foreach($records as $record)
316
                foreach($records as $record)
Línea 315... Línea 317...
315
                {
317
                {
-
 
318
                    
-
 
319
                    $conversation = $conversationMapper->fetchOneByUserId1AndUserId2($owner->user_id, $record->user_id);
316
                    
320
      
317
                    $conversation = $conversationMapper->fetchOneByUserId1AndUserId2($owner->user_id, $record->user_id);
321
                    
318
                    if($conversation) {
322
                    if($conversation) {
319
                        if($conversation->sender_id == $owner->id) {
323
                        if($conversation->sender_id == $owner->id) {
320
                            $conversation->receiver_status = Conversation::STATUS_NORMAL;
324
                            $conversation->receiver_status = Conversation::STATUS_NORMAL;
Línea 330... Línea 334...
330
                                'data' => $conversationMapper->getError()
334
                                'data' => $conversationMapper->getError()
331
                            ]);
335
                            ]);
332
                        }
336
                        }
333
                    } else {
337
                    } else {
334
                        $conversation = new Conversation();
338
                        $conversation = new Conversation();
335
                        $conversation->sender_id = $owner->id;
339
                        $conversation->sender_id = $owner->user_id;
336
                        $conversation->sender_status = Conversation::STATUS_DELETED;
340
                        $conversation->sender_status = Conversation::STATUS_DELETED;
Línea 337... Línea 341...
337
       
341
       
338
                        $conversation->receiver_id = $record->user_id;
342
                        $conversation->receiver_id = $record->user_id;
339
                        $conversation->receiver_status = Conversation::STATUS_NORMAL;
343
                        $conversation->receiver_status = Conversation::STATUS_NORMAL;
Línea 340... Línea 344...
340
                
344
  
341
                    
345
                    
342
                        
346