зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #3789 from nextcloud/bugfix/3787/fix-user-timeout-with-numeric-ids
Fix user timeout with numeric ids
This commit is contained in:
Коммит
caa4f92a73
|
@ -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(),
|
||||
]);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче