diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 7983aa1f73..065c4e104a 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -4183,7 +4183,7 @@ module.exports = (_ => { }; BDFDB.DiscordUtils.rerenderAll = function (instant) { BDFDB.TimeUtils.clear(BDFDB.DiscordUtils.rerenderAll.timeout); - BDFDB.DiscordUtils.rerenderAll.timeou = BDFDB.TimeUtils.timeout(_ => { + BDFDB.DiscordUtils.rerenderAll.timeout = BDFDB.TimeUtils.timeout(_ => { let ShakeableIns = BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.appcontainer), {name: "Shakeable", unlimited: true, up: true}); let ShakeablePrototype = BDFDB.ObjectUtils.get(ShakeableIns, `${BDFDB.ReactUtils.instanceKey}.type.prototype`); if (ShakeableIns && ShakeablePrototype) { diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 334af549c4..a025f5bce7 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -14,12 +14,12 @@ module.exports = (_ => { "info": { "name": "EditUsers", "author": "DevilBro", - "version": "4.1.4", + "version": "4.1.5", "description": "Allow you to change the icon, name, tag and color of users" }, "changeLog": { - "improved": { - "Canary Changes": "Preparing Plugins for the changes that are already done on Discord Canary" + "fixed": { + "Incoming Call Popup": "" } } }; @@ -966,10 +966,10 @@ module.exports = (_ => { } processIncomingCallModal (e) { - if (e.instance.props.channelId && settings.changeInDmCalls) { - let user = BDFDB.LibraryModules.UserStore.getUser(e.instance.props.channelId); + if (e.instance.props.channel && settings.changeInDmCalls) { + let user = BDFDB.LibraryModules.UserStore.getUser(e.instance.props.channel.id); if (!user) { - let channel = BDFDB.LibraryModules.ChannelStore.getChannel(e.instance.props.channelId); + let channel = BDFDB.LibraryModules.ChannelStore.getChannel(e.instance.props.channel.id); if (channel && channel.isDM()) user = BDFDB.LibraryModules.UserStore.getUser(channel.recipients[0]); } if (user) { @@ -979,7 +979,7 @@ module.exports = (_ => { if (data && data.name) userName.props.children = data.name; this.changeUserColor(userName, user.id); } - let avatar = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.callincomingicon]]}); + let avatar = BDFDB.ReactUtils.findChild(e.returnvalue, {name: "CallAvatar"}); if (avatar) avatar.props.src = this.getUserAvatar(user.id); } }