Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
vitormateusalmeida committed Mar 15, 2019
1 parent d5a70fd commit 1e52025
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions bigbluebutton-html5/imports/ui/components/toast/container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,41 +29,14 @@ const intlMessages = defineMessages({
},
});

let mounted = false;

class ToastContainer extends React.Component {

componentDidMount() {
mounted = true;
}

// we never want this component to update since will break Toastify
shouldComponentUpdate() {
return false;
}

componentWillUnmount() {
mounted = false;
console.warn('mounted', mounted);
console.warn('codeError', Session.get('codeError'));
console.warn('isMeetingEnded', Session.get('isMeetingEnded'));
}

render() {
console.warn('mounted', mounted);

const { meeting } = this.props;
console.warn('codeError', Session.get('codeError'));
console.warn('isMeetingEnded', Session.get('isMeetingEnded'));

const meetingId = Auth.meetingID;
const user = Auth.userID;

console.warn('meetingId', meetingId);
console.warn('user', user);

return mounted === false && <Toastify {...this.props} />;
// return null;
return <Toastify {...this.props} />;
}
}

Expand Down

0 comments on commit 1e52025

Please sign in to comment.