Function modifySettings

Modifies the settings for a given room and updates the state accordingly.

Will show an alert if any setting is set to "approval" in demo mode (room name starts with "d").

modifySettings({
roomName: "d123",
audioSet: "allow",
videoSet: "allow",
screenshareSet: "deny",
chatSet: "allow",
socket: mySocketInstance,
updateAudioSetting: setAudioSetting,
updateVideoSetting: setVideoSetting,
updateScreenshareSetting: setScreenshareSetting,
updateChatSetting: setChatSetting,
updateIsSettingsModalVisible: setIsSettingsModalVisible,
showAlert: (options) => alertUser(options),
});