From 0f59c402a751f446161c61d883526ebda3239bac Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 12 Nov 2024 15:36:53 +0200 Subject: [PATCH] fix new messages coming in while viewing historical messages --- files/assets/js/chat.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index f85377d3c..7d5fff68f 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -39,6 +39,10 @@ function scrolled_down() { } socket.on('speak', function(json) { + if (location.href.includes('?m=')) { + return + } + if (blocked_user_ids.includes(json.user_id.toString())) { return }