зеркало из https://github.com/nextcloud/spreed.git
Fix user timeout with numeric ids
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
9c858550c1
Коммит
a0fe5d6f15
|
@ -848,17 +848,18 @@ class RoomController extends AEnvironmentAwareController {
|
|||
$results = [];
|
||||
|
||||
foreach ($participants['users'] as $userId => $participant) {
|
||||
$userId = (string) $userId;
|
||||
if ($participant['sessionId'] !== '0' && $participant['lastPing'] <= $maxPingAge) {
|
||||
$this->room->leaveRoom($userId);
|
||||
}
|
||||
|
||||
$user = $this->userManager->get((string) $userId);
|
||||
$user = $this->userManager->get($userId);
|
||||
if (!$user instanceof IUser) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$results[] = array_merge($participant, [
|
||||
'userId' => (string) $userId,
|
||||
'userId' => $userId,
|
||||
'displayName' => (string) $user->getDisplayName(),
|
||||
]);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче