mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
hotfix for chat history IPs
This commit is contained in:
+2
-1
@@ -506,7 +506,8 @@ chatWss.on('connection', (ws, request) => {
|
||||
|
||||
// Send chat history to the newly connected client
|
||||
storage.chatHistory.forEach(function(message) {
|
||||
message.history = true; // Adding the history parameter
|
||||
message.history = true;
|
||||
!request.session.isAdminAuthenticated ? delete message.ip : null;
|
||||
ws.send(JSON.stringify(message));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user