|
|
|
@ -217,6 +217,7 @@ app.cacheBuster = null;
|
|
|
|
|
app.handleInvalidSession = function () {
|
|
|
|
|
socket.disconnect();
|
|
|
|
|
app.logout(false);
|
|
|
|
|
require(['bootbox'], function (bootbox) {
|
|
|
|
|
bootbox.alert({
|
|
|
|
|
title: '[[error:invalid-session]]',
|
|
|
|
|
message: '[[error:invalid-session-text]]',
|
|
|
|
@ -225,6 +226,7 @@ app.cacheBuster = null;
|
|
|
|
|
window.location.reload();
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
app.handleSessionMismatch = () => {
|
|
|
|
@ -233,6 +235,7 @@ app.cacheBuster = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
socket.disconnect();
|
|
|
|
|
require(['bootbox'], function (bootbox) {
|
|
|
|
|
bootbox.alert({
|
|
|
|
|
title: '[[error:session-mismatch]]',
|
|
|
|
|
message: '[[error:session-mismatch-text]]',
|
|
|
|
@ -241,6 +244,7 @@ app.cacheBuster = null;
|
|
|
|
|
window.location.reload();
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
app.enterRoom = function (room, callback) {
|
|
|
|
@ -434,12 +438,14 @@ app.cacheBuster = null;
|
|
|
|
|
if (!isDnD) {
|
|
|
|
|
return createChat();
|
|
|
|
|
}
|
|
|
|
|
require(['bootbox'], function (bootbox) {
|
|
|
|
|
bootbox.confirm('[[modules:chat.confirm-chat-with-dnd-user]]', function (ok) {
|
|
|
|
|
if (ok) {
|
|
|
|
|
createChat();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
app.toggleNavbar = function (state) {
|
|
|
|
|