defeat caching of context menu, and remove unneeded parameter to getHeaderProps

pull/700/head
Ryan Tharp 5 years ago
parent 472d5ed3be
commit 7507b9c2ce

@ -320,7 +320,7 @@
this.titleView = new Whisper.ReactWrapperView({
className: 'title-wrapper',
Component: window.Signal.Components.ConversationHeader,
props: getHeaderProps(this.model),
props: getHeaderProps(),
});
this.updateHeader = () => this.titleView.update(getHeaderProps());
this.listenTo(this.model, 'change', this.updateHeader);

@ -293,7 +293,7 @@ export class ConversationHeader extends React.Component<Props> {
public render() {
const { id, isGroup, isPublic } = this.props;
const triggerId = `conversation-${id}`;
const triggerId = `conversation-${id}-${Date.now()}`;
const isPrivateGroup = isGroup && !isPublic;

Loading…
Cancel
Save