From f3367465d8610479bd26f2e0aafd460f57d72c07 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Wed, 19 Dec 2018 14:34:56 +1100 Subject: [PATCH] Fix menu items not triggering after conversation is removed and then added. --- ts/components/conversation/ConversationHeader.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ts/components/conversation/ConversationHeader.tsx b/ts/components/conversation/ConversationHeader.tsx index 9c9132713..1efd9f93f 100644 --- a/ts/components/conversation/ConversationHeader.tsx +++ b/ts/components/conversation/ConversationHeader.tsx @@ -251,6 +251,8 @@ export class ConversationHeader extends React.Component { public render() { const { id } = this.props; + const triggerId = `${id}-${Date.now()}`; + return (
{this.renderBackButton()} @@ -261,8 +263,8 @@ export class ConversationHeader extends React.Component {
{this.renderExpirationLength()} - {this.renderGear(id)} - {this.renderMenu(id)} + {this.renderGear(triggerId)} + {this.renderMenu(triggerId)} ); }