From b9e4d662b3cd724c677c6ba29a071ff4198578b8 Mon Sep 17 00:00:00 2001
From: Nils G <nils.gondermann@ruhr-uni-bochum.de>
Date: Wed, 22 Apr 2020 11:22:04 +0200
Subject: [PATCH] Filter join and leave websocket messages

---
 views/include/websocket.html | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/views/include/websocket.html b/views/include/websocket.html
index 70ead17..84c8f27 100644
--- a/views/include/websocket.html
+++ b/views/include/websocket.html
@@ -10,6 +10,9 @@
             ws.onmessage = function(e) {
                 var firstColon = e.data.indexOf(":");
                 if(firstColon === -1) {
+                    if(e.data.startsWith("+") || e.data.startsWith("-")) {
+                        return;
+                    }
                     set_error("{{=T('Invalid WebSocket data received')}}: '" + e.data + "'");
                     return;
                 }
-- 
GitLab