You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 14:11:59 +01:00
hotfix for chat history IPs
This commit is contained in:
@@ -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