fix: join failure

due to creation time converted to string in scientific notation. This happens only on some systems.
pull/109/head
sualko 2020-12-17 00:58:31 +01:00
parent 3840ca6a2d
commit 58cb016f28
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ class API {
$joinMeetingParams = new JoinMeetingParameters($room->uid, $displayname, $password);
$joinMeetingParams->setCreationTime($creationTime);
// ensure that float is not converted to a string in scientific notation
$joinMeetingParams->setCreationTime(sprintf("%.0f", $creationTime));
$joinMeetingParams->setJoinViaHtml5(true);
$joinMeetingParams->setRedirect(true);
$joinMeetingParams->setGuest($uid === null);