Fix Message component selection

This commit is contained in:
Samuel Elliott 2018-07-18 19:16:36 +01:00
parent b4ebd6c08a
commit 78079588ea
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ export class ReactAutoPatcher {
}
static async patchMessage() {
this.Message = await ReactComponents.getComponent('Message', { selector: '.message' });
this.Message = await ReactComponents.getComponent('Message', { selector: '.message' }, m => m.prototype.renderContent);
this.unpatchMessageRender = MonkeyPatch('BD:ReactComponents', this.Message.component.prototype).after('render', (component, args, retVal) => {
const { message, jumpSequenceId, canFlash } = component.props;