|
|
|
@ -40,6 +40,7 @@ import { createInverseContext } from "../../createInverseContext";
|
|
|
|
|
import { t } from "../../i18n";
|
|
|
|
|
import { UserIdleState } from "./types";
|
|
|
|
|
import { IDLE_THRESHOLD, ACTIVE_THRESHOLD } from "../../constants";
|
|
|
|
|
import { trackEvent } from "../../analytics";
|
|
|
|
|
|
|
|
|
|
interface CollabState {
|
|
|
|
|
modalIsShown: boolean;
|
|
|
|
@ -188,6 +189,7 @@ class CollabWrapper extends PureComponent<Props, CollabState> {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
openPortal = async () => {
|
|
|
|
|
trackEvent("share", "room creation");
|
|
|
|
|
return this.initializeSocketClient(null);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -196,6 +198,7 @@ class CollabWrapper extends PureComponent<Props, CollabState> {
|
|
|
|
|
if (window.confirm(t("alerts.collabStopOverridePrompt"))) {
|
|
|
|
|
window.history.pushState({}, APP_NAME, window.location.origin);
|
|
|
|
|
this.destroySocketClient();
|
|
|
|
|
trackEvent("share", "room closed");
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|