From a59fcf7646dd154415fdbfbe58962fdbed526bb5 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 26 Aug 2019 09:30:23 +0200 Subject: [PATCH] Update FriendNotifications.plugin.js --- Plugins/FriendNotifications/FriendNotifications.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/FriendNotifications/FriendNotifications.plugin.js b/Plugins/FriendNotifications/FriendNotifications.plugin.js index b8aa5693df..e4c48d7992 100644 --- a/Plugins/FriendNotifications/FriendNotifications.plugin.js +++ b/Plugins/FriendNotifications/FriendNotifications.plugin.js @@ -499,7 +499,6 @@ class FriendNotifications { let EUdata = BDFDB.loadData(user.id, "EditUsers", "users") || {}; let toaststring = BDFDB.LanguageStrings[this.defaults.configs[status].toasttext]; let string = `${BDFDB.encodeToHTML(EUdata.name || user.username)} changed status to  '${toaststring}'`; - let desktopstring = `${EUdata.name || user.username} changed status to '${toaststring}'`; let avatar = EUdata.removeIcon ? "" : (EUdata.url ? EUdata.url : BDFDB.getUserAvatar(user.id)); this.timeLog.push({string, avatar, time: new Date()}); if (!(settings.muteOnDND && BDFDB.getUserStatus() == "dnd")) { @@ -522,6 +521,7 @@ class FriendNotifications { } } else { + let desktopstring = `${EUdata.name || user.username} changed status to '${toaststring}'`; let notificationsound = BDFDB.getData("desktop" + status, this, "notificationsounds"); BDFDB.showDesktopNotification(desktopstring, {icon:avatar, timeout:5000, click:openChannel, silent:notificationsound.mute, sound:notificationsound.song}); }