[mirotalksfu] - keep chat settings
هذا الالتزام موجود في:
@@ -16,6 +16,7 @@ class LocalStorage {
|
||||
};
|
||||
|
||||
this.SFU_SETTINGS = {
|
||||
show_chat_on_msg: true,
|
||||
video_fps: 0, // default 1280x768 30fps
|
||||
screen_fps: 0, // max 30fps
|
||||
lobby: false,
|
||||
|
||||
@@ -1523,6 +1523,8 @@ function handleSelects() {
|
||||
} else {
|
||||
userLog('info', 'Chat not will be shown, when you receive a message', 'top-end');
|
||||
}
|
||||
lsSettings.show_chat_on_msg = rc.showChatOnMessage;
|
||||
lS.setSettings(lsSettings);
|
||||
e.target.blur();
|
||||
};
|
||||
// whiteboard options
|
||||
@@ -1593,8 +1595,10 @@ function handleInputs() {
|
||||
// ####################################################
|
||||
|
||||
function loadSettingsFromLocalStorage() {
|
||||
rc.showChatOnMessage = lsSettings.show_chat_on_msg;
|
||||
isPitchBarEnabled = lsSettings.pitch_bar;
|
||||
isSoundEnabled = lsSettings.sounds;
|
||||
showChatOnMsg.checked = rc.showChatOnMessage;
|
||||
switchPitchBar.checked = isPitchBarEnabled;
|
||||
switchSounds.checked = isSoundEnabled;
|
||||
videoFps.selectedIndex = lsSettings.video_fps;
|
||||
|
||||
@@ -644,8 +644,7 @@ access to use this app.
|
||||
<button id="chatPasteButton" class="hidden">
|
||||
<i class="fas fa-paste"></i>
|
||||
</button>
|
||||
<div class="form-check form-switch form-switch-md">
|
||||
|
||||
<div style="margin-left: 10px" class="form-check form-switch form-switch-md">
|
||||
<input class="form-check-input" type="checkbox" id="showChatOnMsg" checked />
|
||||
</div>
|
||||
<button id="chatSendButton" class="hidden">
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم