From 2404f8fbe74ae6edb7981c022071b081c8bbca85 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 21 Jan 2023 12:58:37 +0200 Subject: [PATCH] fix message reposting --- files/assets/js/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 53cbb8ac0..4f08b3c4a 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -146,8 +146,8 @@ socket.on('speak', function(json) { socket.on('catchup', function(json) { for (const message of json) { - console.log(json['id']) - const existing = document.getElementById(json['id']) + console.log(message['id']) + const existing = document.getElementById(message['id']) if (existing) break console.log(existing) handle_message(message)