Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

paweldomasd256bc317a40
diff --git a/conference.js b/conference.js
index 03a9140cbe..17bac3d265 100644
--- a/conference.js
+++ b/conference.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.
diff --git a/modules/UI/reload_overlay/PageReloadOverlay.js b/modules/UI/reload_overlay/PageReloadOverlay.js
index bcc225491c..e150437969 100644
--- a/modules/UI/reload_overlay/PageReloadOverlay.js
+++ b/modules/UI/reload_overlay/PageReloadOverlay.js
@@ -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();
}
};