From 818cb1afc646fbfebeb536957e966f5aeda8cbdc Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 2 Dec 2020 23:44:59 +0200 Subject: [PATCH] refresh also now clears messages from client --- app/resources/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/resources/js/app.js b/app/resources/js/app.js index e0631a0..f668d35 100755 --- a/app/resources/js/app.js +++ b/app/resources/js/app.js @@ -240,6 +240,10 @@ const app = new Vue({ }); this.gateway.socket.on('refreshClient', (e) => { console.log('[*] [gateway] Gateway requested refresh', e); + this.gateway.disconnect(); + this.messages = {}; + this.userLists = {}; + this.message.typed = ''; if (e.reason === 'exit') { this.showApp = false; this.okNotification('The server has exited. Sit tight!');