From e477d728d407cde21449549c5e464da8b54044f0 Mon Sep 17 00:00:00 2001 From: Bjoern Gruening Date: Sun, 19 Jun 2016 10:30:45 +0200 Subject: [PATCH] do not show gravatar for server messages --- scripts/communication/template/communication.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/communication/template/communication.js b/scripts/communication/template/communication.js index 8bd7773dfdb..36a93c70f8a 100644 --- a/scripts/communication/template/communication.js +++ b/scripts/communication/template/communication.js @@ -39,7 +39,7 @@ var events_module = { uid = utils.get_userid(), tab_counter = 0, $el_tab_li = null, - server_text_name = 'Server'; + server_text_name = 'Notification'; // response when user joins if (msg.userjoin) { message = { @@ -375,8 +375,7 @@ var utils = { '
' + unescape( original_message ) + '
'; - - if( user.username === "me" ){ + if ( user.username === "me" ){ return '
' + '
' + message_col_content + @@ -385,6 +384,12 @@ var utils = { gravatar_col_content + '
' + '
'; + } else if ( user.username === "Notification" ){ + return '
' + + '
' + + message_col_content + + '
' + + '
'; } else { return '
' + '
' +