diff --git a/clientapp/helpers/xmppEventHandlers.js b/clientapp/helpers/xmppEventHandlers.js index fef810f..3faa5fe 100644 --- a/clientapp/helpers/xmppEventHandlers.js +++ b/clientapp/helpers/xmppEventHandlers.js @@ -84,7 +84,7 @@ module.exports = function (client, app) { console.error(err); } if (!app.hasConnected) { - //window.location = '/login'; + window.location = '/login'; } }); diff --git a/clientapp/pages/chat.js b/clientapp/pages/chat.js index f8e21f1..3c7515f 100644 --- a/clientapp/pages/chat.js +++ b/clientapp/pages/chat.js @@ -77,7 +77,7 @@ module.exports = BasePage.extend({ }, handleKeyUp: function (e) { this.resizeInput(); - this.typingTimer = setTimeout(this.pausedTyping.bind(this), 3000); + this.typingTimer = setTimeout(this.pausedTyping.bind(this), 5000); if (this.typing && this.$chatInput.val().length === 0) { this.typing = false; client.sendMessage({