From d7c383fb41456a733e3926018f2acfe887d15638 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 14 Oct 2021 16:32:12 +0200 Subject: [PATCH] Update FriendNotifications.plugin.js --- Plugins/FriendNotifications/FriendNotifications.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/FriendNotifications/FriendNotifications.plugin.js b/Plugins/FriendNotifications/FriendNotifications.plugin.js index c8f2f1fede..ee8c94f639 100644 --- a/Plugins/FriendNotifications/FriendNotifications.plugin.js +++ b/Plugins/FriendNotifications/FriendNotifications.plugin.js @@ -22,7 +22,7 @@ module.exports = (_ => { }, "changeLog": { "fixed": { - "Log In Option": "Now also Works for Desktop Notifications" + "Status Crash": "No longer crashes Discord when clicking on the status notification adn trying to open the DM of a User you don't share a DM with" } } }; @@ -862,7 +862,7 @@ module.exports = (_ => { if (this.settings.general.openOnClick) { let DMid = BDFDB.LibraryModules.ChannelStore.getDMFromUserId(user.id) if (DMid) BDFDB.LibraryModules.ChannelUtils.selectPrivateChannel(DMid); - else BDFDB.LibraryModules.DirectMessageUtils.openPrivateChannel(BDFDB.UserUtils.me.id, user.id); + else BDFDB.LibraryModules.DirectMessageUtils.openPrivateChannel(user.id); BDFDB.LibraryModules.WindowUtils.focus(); } };