Fix error with missing last session (#2721)

In some cases when you create a new room there is a missing last session. This throws an error. This check fixes that error.
This commit is contained in:
Big Blue Meeting 2021-05-20 01:58:32 +05:00 committed by GitHub
parent e62c86c898
commit 3a4497d1a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ module BbbServer
join_opts = {}
join_opts[:userID] = uid if uid
join_opts[:join_via_html5] = true
join_opts[:createTime] = room.last_session.to_datetime.strftime("%Q")
join_opts[:createTime] = room.last_session.to_datetime.strftime("%Q") if room.last_session
bbb_server.join_meeting_url(room.bbb_id, name, password, join_opts)
end