From 94c4cbaea1eeca9f4cdec0f26a50d85be96bb260 Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Tue, 9 Jan 2018 14:43:54 +0530 Subject: [PATCH] egyptian brackets --- frappe/public/js/frappe/chat.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frappe/public/js/frappe/chat.js b/frappe/public/js/frappe/chat.js index 7110036e2f..05a3b00790 100644 --- a/frappe/public/js/frappe/chat.js +++ b/frappe/public/js/frappe/chat.js @@ -1507,8 +1507,7 @@ class extends Component else state.profile.notification_tones && frappe.chat.sound.play('notification') - if ( r.user !== frappe.session.user && state.profile.message_preview && !state.toggle ) - { + if ( r.user !== frappe.session.user && state.profile.message_preview && !state.toggle ) { const $element = $('body').find('.frappe-chat-alert') $element.remove(); @@ -1522,8 +1521,7 @@ class extends Component frappe.show_alert(alert, 3) } - if ( r.room === state.room.name ) - { + if ( r.room === state.room.name ) { const mess = frappe._.copy_array(state.room.messages) mess.push(r)