Update FriendNotifications.plugin.js

This commit is contained in:
Mirco Wittrien 2021-10-14 16:32:12 +02:00
parent 0d2060f571
commit d7c383fb41
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
};