diff --git a/client/src/modules/reactcomponents.js b/client/src/modules/reactcomponents.js index 38d33744..27637bd9 100644 --- a/client/src/modules/reactcomponents.js +++ b/client/src/modules/reactcomponents.js @@ -338,7 +338,7 @@ export class ReactAutoPatcher { static async patchChannelMember() { const selector = '.' + WebpackModules.getModuleByProps(['member', 'memberInner', 'activity']).member; - this.ChannelMember = await ReactComponents.getComponent('ChannelMember', { selector }); + this.ChannelMember = await ReactComponents.getComponent('ChannelMember', { selector }, m => m.prototype.renderActivity); this.unpatchChannelMemberRender = MonkeyPatch('BD:ReactComponents', this.ChannelMember.component.prototype).after('render', (component, args, retVal) => { if (!retVal.props || !retVal.props.children) return; const user = Helpers.findProp(component, 'user'); diff --git a/client/src/ui/profilebadges.js b/client/src/ui/profilebadges.js index d193b417..e8beb1fa 100644 --- a/client/src/ui/profilebadges.js +++ b/client/src/ui/profilebadges.js @@ -92,7 +92,9 @@ export default class extends Module { // Rerender all channel members if (this.PatchedNameTag) { - for (const channelMember of document.querySelectorAll('.member-2FrNV0')) { + const selector = '.' + WebpackModules.getModuleByProps(['member', 'memberInner', 'activity']).member; + + for (const channelMember of document.querySelectorAll(selector)) { Reflection(channelMember).forceUpdate(); } }