Fix Channel component

This commit is contained in:
Samuel Elliott 2018-05-03 19:52:23 +01:00
parent dc2be5c410
commit 40a72458e2
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ export class ReactAutoPatcher {
}
static async patchChannel() {
this.Channel = await ReactComponents.getComponent('Channel');
this.Channel = await ReactComponents.getComponent('Channel', {selector: '.chat'});
this.unpatchChannel = MonkeyPatch('BD:ReactComponents', this.Channel.component.prototype).after('render', (component, args, retVal) => {
const channel = component.props.channel || component.state.channel;
if (!channel) return;