@ -30,6 +30,16 @@ export default class AbstractPageReloadOverlay extends Component<*, *> {
* @ static
* @ static
* /
* /
static propTypes = {
static propTypes = {
/ * *
* The details is an object containing more information
* about the connection failed ( shard changes , was the computer
* suspended , etc . ) .
*
* @ public
* @ type { object }
* /
details : PropTypes . object ,
dispatch : PropTypes . func ,
dispatch : PropTypes . func ,
/ * *
/ * *
@ -172,7 +182,7 @@ export default class AbstractPageReloadOverlay extends Component<*, *> {
}
}
sendAnalytics ( createPageReloadScheduledEvent (
sendAnalytics ( createPageReloadScheduledEvent (
this . props . reason , this . state . timeoutSeconds ) ) ;
this . props . reason , this . state . timeoutSeconds , this . props . details ) ) ;
logger . info (
logger . info (
` The conference will be reloaded after ${
` The conference will be reloaded after ${
@ -259,7 +269,8 @@ export default class AbstractPageReloadOverlay extends Component<*, *> {
* @ protected
* @ protected
* @ returns { {
* @ returns { {
* isNetworkFailure : boolean ,
* isNetworkFailure : boolean ,
* reason : string
* reason : string ,
* details : Object
* } }
* } }
* /
* /
export function abstractMapStateToProps ( state : Object ) {
export function abstractMapStateToProps ( state : Object ) {
@ -269,6 +280,7 @@ export function abstractMapStateToProps(state: Object) {
return {
return {
isNetworkFailure : Boolean ( configError || connectionError ) ,
isNetworkFailure : Boolean ( configError || connectionError ) ,
reason : ( configError || connectionError || conferenceError ) . message
reason : ( configError || connectionError || conferenceError ) . message ,
details : connectionError ? connectionError . details : undefined
} ;
} ;
}
}