forked from External/greenlight
		
	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:
		@@ -54,7 +54,7 @@ module BbbServer
 | 
				
			|||||||
    join_opts = {}
 | 
					    join_opts = {}
 | 
				
			||||||
    join_opts[:userID] = uid if uid
 | 
					    join_opts[:userID] = uid if uid
 | 
				
			||||||
    join_opts[:join_via_html5] = true
 | 
					    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)
 | 
					    bbb_server.join_meeting_url(room.bbb_id, name, password, join_opts)
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user