Fix guild component selector

This commit is contained in:
Samuel Elliott 2019-08-24 22:53:32 +01:00
parent 3359835eff
commit e49df8952f
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 2 additions and 2 deletions

View File

@ -473,8 +473,8 @@ export class ReactAutoPatcher {
}
static async patchGuild() {
const selector = `div.${Reflection.resolve('container', 'guildIcon', 'selected', 'unread').className}:not(:first-child)`;
this.Guild = await ReactComponents.getComponent('Guild', {selector}, m => m.prototype.renderBadge);
const { selector } = Reflection.resolve('listItem', 'guildSeparator', 'selected', 'friendsOnline');
this.Guild = await ReactComponents.getComponent('Guild', {selector}, m => m.displayName === 'Guild');
this.unpatchGuild = MonkeyPatch('BD:ReactComponents', this.Guild.component.prototype).after('render', (component, args, retVal) => {
const { guild } = component.props;