Fix menu items not triggering after conversation is removed and then added.

pull/116/head
Mikunj 6 years ago
parent e50a199f83
commit f3367465d8

@ -251,6 +251,8 @@ export class ConversationHeader extends React.Component<Props> {
public render() { public render() {
const { id } = this.props; const { id } = this.props;
const triggerId = `${id}-${Date.now()}`;
return ( return (
<div className="module-conversation-header"> <div className="module-conversation-header">
{this.renderBackButton()} {this.renderBackButton()}
@ -261,8 +263,8 @@ export class ConversationHeader extends React.Component<Props> {
</div> </div>
</div> </div>
{this.renderExpirationLength()} {this.renderExpirationLength()}
{this.renderGear(id)} {this.renderGear(triggerId)}
{this.renderMenu(id)} {this.renderMenu(triggerId)}
</div> </div>
); );
} }

Loading…
Cancel
Save