fix(log): log the page reload from one place

pull/1114/head
paweldomas 9 years ago
parent 4b1dfb9a33
commit d256bc317a
  1. 5
      conference.js
  2. 7
      modules/UI/reload_overlay/PageReloadOverlay.js

@ -370,11 +370,6 @@ class ConferenceConnector {
case ConferenceErrors.FOCUS_LEFT:
case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
// Log the page reload event
// FIXME (CallStats - issue) this event will not make it to
// the CallStats, because the log queue is not flushed, before
// "fabric terminated" is sent to the backed
APP.conference.logEvent('page.reload');
// FIXME the conference should be stopped by the library and not by
// the app. Both the errors above are unrecoverable from the library
// perspective.

@ -116,6 +116,13 @@ export default {
if (!overlay) {
overlay = new PageReloadOverlayImpl(timeoutSeconds);
}
// Log the page reload event
if (!this.isVisible()) {
// FIXME (CallStats - issue) this event will not make it to
// the CallStats, because the log queue is not flushed, before
// "fabric terminated" is sent to the backed
APP.conference.logEvent('page.reload');
}
overlay.show();
}
};

Loading…
Cancel
Save