[mirotalksfu] - keep chat settings

هذا الالتزام موجود في:
Miroslav Pejic
2023-08-29 13:38:27 +02:00
الأصل ff44751a60
التزام 6f7f6f3aa6
3 ملفات معدلة مع 6 إضافات و2 حذوفات

عرض الملف

@@ -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">
&nbsp;&nbsp;&nbsp;
<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">