diff --git a/Plugins/RemoveBlockedUsers/RemoveBlockedUsers.plugin.js b/Plugins/RemoveBlockedUsers/RemoveBlockedUsers.plugin.js index 3469af1dfa..11082d8f65 100644 --- a/Plugins/RemoveBlockedUsers/RemoveBlockedUsers.plugin.js +++ b/Plugins/RemoveBlockedUsers/RemoveBlockedUsers.plugin.js @@ -127,7 +127,7 @@ module.exports = (_ => { }}); BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.RelationshipUtils, "addRelationship", {after: e => { - if (e.methodArguments[2] == BDFDB.DiscordConstants.RelationshipTypes.BLOCKED) this.forceUpdateAll(); + if (e.methodArguments[2] == BDFDB.DiscordConstants.RelationshipTypes.BLOCKED) BDFDB.DiscordUtils.rerenderAll(); }}); BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.RelationshipUtils, "removeRelationship", {after: e => this.forceUpdateAll()}); @@ -195,11 +195,11 @@ module.exports = (_ => { else e.callOriginalMethodAfterwards(); }}); - this.forceUpdateAll(); + BDFDB.DiscordUtils.rerenderAll(); } onStop () { - this.forceUpdateAll(); + BDFDB.DiscordUtils.rerenderAll(); } getSettingsPanel (collapseStates = {}) { @@ -239,15 +239,10 @@ module.exports = (_ => { onSettingsClosed () { if (this.SettingsUpdated) { delete this.SettingsUpdated; - this.forceUpdateAll(); + BDFDB.DiscordUtils.rerenderAll(); } } - forceUpdateAll () { - BDFDB.PatchUtils.forceAllUpdates(this); - BDFDB.MessageUtils.rerenderAll(); - } - processMessages (e) { if (!this.settings.places.messages) return; if (BDFDB.ArrayUtils.is(e.instance.props.channelStream)) {