Update RemoveBlockedUsers.plugin.js
This commit is contained in:
parent
437153f83c
commit
12299a4564
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue