Use the user image for BBB avatar #2 (Limit image size) (#2860)

* Update bbb_server.rb

* Update bbb_server.rb

* showing user avatar

To make sure something unexpected happens

* revert if current_user due to the undefined error

* Update bbb_server.rb

'if current_user' should not have problem, but rubocop complains...

* Update bbb_server.rb

* add an option to avatar image

* Add an option to avatar image

* add an option avatar_image

* Update rooms_controller.rb

* Update joiner.rb

* Update bbb_server.rb

* Update joiner.rb

* Update joiner.rb

* Update rooms_controller.rb

* Update joiner.rb

* Update sample.env

* Update application_helper.rb

* Update rooms_controller.rb

* Update joiner.rb

* Update bbb_server.rb

* Update application_helper.rb

Add a check if the URL is valid.

* double the limit

* move the judgement to controller

* Update joiner.rb

* Update rooms_controller.rb

* Update application_helper.rb

* Update rooms_controller.rb

* Update application.rb

* Update joiner.rb

* Update rooms_controller.rb

* Update joiner.rb

* Update rooms_controller.rb

* Update application_helper.rb

* Update application.rb

* in case parameter not set

* change to MAX_AVATAR_SIZE

* Notification default value

Co-authored-by: Jesus Federico <jesus@123it.ca>
Co-authored-by: Ahmad Farhat <ahmad.af.farhat@gmail.com>
This commit is contained in:
hiroshisuga
2021-09-19 07:56:39 +09:00
committed by GitHub
parent 1f2ef10da6
commit beb414aec7
5 changed files with 19 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ module BbbServer
join_opts = {}
join_opts[:userID] = uid if uid
join_opts[:join_via_html5] = true
join_opts[:avatarURL] = options[:avatarURL] if options[:avatarURL].present?
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)