update zoom user settings after creating zoom user

This commit is contained in:
bilal
2020-06-19 12:14:22 +02:00
parent 6b0ea5b7df
commit f5068a3a7e
4 changed files with 107 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
# frozen_string_literal: true
require './lib/zoom_wrapper_monkeypatch'
class ZoomGateway
class AuthenticationError < StandardError; end
class MeetingExpired < StandardError; end
@@ -82,6 +86,21 @@ class ZoomGateway
type: self.class.USER_TYPE
})
# Update user with custom settings
custom_defaults = {
id: host_user["id"],
in_meeting: {
auto_saving_chat: true,
co_host: true,
non_verbal_feedback: true,
breakout_room: true,
group_hd: true,
far_end_camera_control: true,
allow_live_streaming: true
}
}
@client.user_settings_update custom_defaults
# Assign role to user
@client.roles_assign role_id: host_role["id"], members: [{id: host_user["id"]}]