diff --git a/html/realtimechat.js b/html/realtimechat.js index e84ad2c..781d0e1 100644 --- a/html/realtimechat.js +++ b/html/realtimechat.js @@ -55,7 +55,7 @@ function toAJAX() xhttp.onload = function() { if (reqIsFailed) { reqIsFailed = false; - objPath.removeAttribute("style", "color: red"); + objPath.removeAttribute("style"); } const answer = JSON.parse(xhttp.responseText); @@ -65,7 +65,7 @@ function toAJAX() } if (answer.serverStatusChanged) { if (answer.serverStatus) { - objPath.removeAttribute("style", "color: red"); + objPath.removeAttribute("style"); objCurrentServerStatus.innerText = HTML_SERVER_ONLINE_MARKER; } else { objPath.setAttribute("style", "color: red"); diff --git a/httpserver.cpp b/httpserver.cpp index 202d58a..e032527 100644 --- a/httpserver.cpp +++ b/httpserver.cpp @@ -1299,13 +1299,9 @@ void HttpServer::writeRealTimeChatPage(QTcpSocket *socket, QString &urlPath, boo } QString message = HTML_PAYLOAD_LIST_CHAT_MESSAGE; - for (const auto &user: m_onlineUsers[originalServerName][originalChannelName]) { - if (QRegularExpression("^(.*;|~|@|\\&|\\+)?"+rawMessage.first+"$").match(user).hasMatch()) { - message.replace("