diff --git a/src/components/views/right_panel/GroupHeaderButtons.js b/src/components/views/right_panel/GroupHeaderButtons.js index 13379d49e3..494ccb88fa 100644 --- a/src/components/views/right_panel/GroupHeaderButtons.js +++ b/src/components/views/right_panel/GroupHeaderButtons.js @@ -68,13 +68,13 @@ export default class GroupHeaderButtons extends HeaderButtons { this.togglePhase(RightPanel.Phase.GroupMemberList)} analytics={['Right Panel', 'Group Member List Button', 'click']} />, this.togglePhase(RightPanel.Phase.GroupRoomList)} analytics={['Right Panel', 'Group Room List Button', 'click']} />, ]; diff --git a/src/components/views/right_panel/HeaderButton.js b/src/components/views/right_panel/HeaderButton.js index cc78373117..decce417d8 100644 --- a/src/components/views/right_panel/HeaderButton.js +++ b/src/components/views/right_panel/HeaderButton.js @@ -32,11 +32,7 @@ export default class HeaderButton extends React.Component { onClick(ev) { Analytics.trackEvent(...this.props.analytics); - dis.dispatch({ - action: 'view_right_panel_phase', - phase: this.props.clickPhase, - fromHeader: true, - }); + this.props.onClick(); } render() { diff --git a/src/components/views/right_panel/RoomHeaderButtons.js b/src/components/views/right_panel/RoomHeaderButtons.js index 51e436bfc2..5c64cb799b 100644 --- a/src/components/views/right_panel/RoomHeaderButtons.js +++ b/src/components/views/right_panel/RoomHeaderButtons.js @@ -62,19 +62,19 @@ export default class RoomHeaderButtons extends HeaderButtons { this.togglePhase(RightPanel.Phase.RoomMemberList)} analytics={['Right Panel', 'Member List Button', 'click']} />, this.togglePhase(RightPanel.Phase.FilePanel)} analytics={['Right Panel', 'File List Button', 'click']} />, this.togglePhase(RightPanel.Phase.NotificationPanel)} analytics={['Right Panel', 'Notification List Button', 'click']} />, ];