From 000cbf01efd31afe9c65676257957aa4690f370b Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 18 Jan 2020 10:04:08 +0100 Subject: [PATCH] Update PersonalPins.plugin.js --- Plugins/PersonalPins/PersonalPins.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/PersonalPins/PersonalPins.plugin.js b/Plugins/PersonalPins/PersonalPins.plugin.js index 4cf81aac05..b21c82511e 100644 --- a/Plugins/PersonalPins/PersonalPins.plugin.js +++ b/Plugins/PersonalPins/PersonalPins.plugin.js @@ -5,13 +5,13 @@ class PersonalPins { getDescription () {return "Similar to normal pins. Lets you save messages as notes for yourself.";} - getVersion () {return "1.8.6";} + getVersion () {return "1.8.7";} getAuthor () {return "DevilBro";} constructor () { this.changelog = { - "fixed":[["Embed Crash","Fixed issue where opening the pins could crash Discord because of old embed data"]], + "fixed":[["Crash","Fixed a crash that could occur when trying to load a group DM pin"]], "improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]] }; @@ -355,7 +355,7 @@ class PersonalPins { if (filter != "channel" && !channelname && channel.recipients.length > 0) { for (let dmuser_id of channel.recipients) { channelname = channelname ? channelname + ", @" : channelname; - channelname = channelname + BDFDB.LibraryModules.UserStore.getUser(dmuser_id).username; + channelname = channelname + (BDFDB.LibraryModules.UserStore.getUser(dmuser_id) || {}).username || BDFDB.LanguageUtils.LanguageStrings.UNKNOWN_USER; } } let separator = filter == "channel" ? null : BDFDB.ReactUtils.createElement("div", {