Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 11532 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11532 Rev 14591
Línea 57... Línea 57...
57
                if(in_array($user->id, $user_blocked_ids)) {
57
                if(in_array($user->id, $user_blocked_ids)) {
58
                    continue;
58
                    continue;
59
                }
59
                }
Línea 60... Línea 60...
60
                
60
                
61
                $username = trim($user->first_name . ' ' . $user->last_name);
-
 
62
                
-
 
63
                
-
 
64
                if($this->isInactiveConnection($user->last_heart_beat_at ? $user->last_heart_beat_at : '')) {
-
 
65
                    $userMapper->updateChatOfflineStatus($user->id);
-
 
66
                    $status = "Offline";
-
 
67
                } else {
61
                $username = trim($user->first_name . ' ' . $user->last_name);
68
                    $userMapper->updateChatOnlineStatus($user->id);
-
 
69
                    $status = "Online";
-
 
Línea 70... Línea 62...
70
                }
62
                $status = $user->online ? 'Online' : 'Offline';
Línea 71... Línea 63...
71
 
63
 
72
                array_push($contacts, ['id' => $user->uuid, 'id_encrypted' => $user->uuid, 'status'=> $status,'name'=> $username, 'image' => $user->image]);
64
                array_push($contacts, ['id' => $user->uuid, 'id_encrypted' => $user->uuid, 'status'=> $status,'name'=> $username, 'image' => $user->image]);