From c50be21cda2c1b2a09c19ee42d7cefe417be731d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 9 Jun 2020 13:46:37 +0200 Subject: Fix user timeout with numeric ids Signed-off-by: Joas Schilling --- lib/Controller/RoomController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index 956b9f5b9..ae071a028 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -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(), ]); } -- cgit v1.2.3