[mirotalksfu] - fix typo

هذا الالتزام موجود في:
Miroslav Pejic
2025-10-20 05:29:44 +02:00
الأصل 8f0b508f85
التزام f2bfc1e699
2 ملفات معدلة مع 5 إضافات و6 حذوفات

عرض الملف

@@ -1957,6 +1957,7 @@ function handleButtons() {
}; };
notifyEmailCleanBtn.onclick = () => { notifyEmailCleanBtn.onclick = () => {
rc.cleanNotifications(); rc.cleanNotifications();
rc.saveNotifications(false);
}; };
saveNotificationsBtn.onclick = () => { saveNotificationsBtn.onclick = () => {
rc.saveNotifications(); rc.saveNotifications();

عرض الملف

@@ -10670,6 +10670,7 @@ class RoomClient {
cleanNotifications() { cleanNotifications() {
getId('notifyEmailInput').value = ''; getId('notifyEmailInput').value = '';
getId('switchNotifyUserJoin').checked = false; getId('switchNotifyUserJoin').checked = false;
return true;
} }
saveNotifications(validate = true) { saveNotifications(validate = true) {
@@ -10684,12 +10685,9 @@ class RoomClient {
setNotificationsData(data) { setNotificationsData(data) {
this.socket.emit('updateRoomNotifications', data, (response) => { this.socket.emit('updateRoomNotifications', data, (response) => {
if (response.error) { response.error
this.cleanNotifications(); ? this.cleanNotifications() && this.userLog('warning', response.error, 'top-end', 6000)
this.userLog('warning', response.error, 'top-end', 6000); : this.roomMessage('save_room_notifications', true);
} else {
this.roomMessage('save_room_notifications', true);
}
}); });
} }