consolidate call onPageUnload handler into RoomView

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-05-03 16:36:57 +01:00
parent 356d29939c
commit 9d92f93fcb
2 changed files with 3 additions and 12 deletions

View file

@ -371,6 +371,9 @@ module.exports = React.createClass({
if (ContentMessages.getCurrentUploads().length > 0) {
return event.returnValue =
'You seem to be uploading files, are you sure you want to quit?';
} else if (this._getCallForRoom() && this.state.callState !== 'ended') {
return event.returnValue =
'You seem to be in a call, are you sure you want to quit?';
}
},