forked from External/greenlight
signup and room waiting
This commit is contained in:
@ -51,6 +51,7 @@ class Room < ApplicationRecord
|
||||
|
||||
# Increment room sessions.
|
||||
self.sessions += 1
|
||||
self.last_session = DateTime.now
|
||||
self.save
|
||||
|
||||
#meeting_options.merge!(
|
||||
@ -84,7 +85,7 @@ class Room < ApplicationRecord
|
||||
return call_invalid_res if !bbb
|
||||
|
||||
# Get the meeting info.
|
||||
meeting_info = bbb.get_meeting_info(bbb_id, nil)
|
||||
meeting_info = bbb.get_meeting_info(bbb_id, nil)
|
||||
|
||||
# Determine the password to use when joining.
|
||||
password = if options[:user_is_moderator]
|
||||
@ -101,6 +102,13 @@ class Room < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
# Notify waiting users that a meeting has started.
|
||||
def notify_waiting
|
||||
ActionCable.server.broadcast("#{uid}_waiting_channel", {
|
||||
action: "started"
|
||||
})
|
||||
end
|
||||
|
||||
# Fetches all recordings for a meeting.
|
||||
def recordings
|
||||
res = bbb.get_recordings(meetingID: bbb_id)
|
||||
|
Reference in New Issue
Block a user