From f222323ef04584c33dc17c96b89a5dace28a02d6 Mon Sep 17 00:00:00 2001 From: Armored Dragon Date: Sat, 17 Aug 2024 04:28:24 -0500 Subject: [PATCH] Remove message appending. Signed-off-by: Armored Dragon --- .../armored-chat/armored_chat.qml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/scripts/communityScripts/armored-chat/armored_chat.qml b/scripts/communityScripts/armored-chat/armored_chat.qml index ede60fca71..91018502dd 100644 --- a/scripts/communityScripts/armored-chat/armored_chat.qml +++ b/scripts/communityScripts/armored-chat/armored_chat.qml @@ -487,13 +487,17 @@ Rectangle { var last_item_index = channel.count - 1; var last_item = channel.get(last_item_index); - if (last_message_user === username && elapsed_minutes < 1 && last_item){ - message = "
" + message - last_item.text = last_item.text += "\n" + message; - scrollToBottom() - last_message_time = new Date(); - return; - } + // FIXME: When adding a new message this would check to see if we could append the incoming message + // to the bottom of the last message. This current implimentation causes issues with scrollToBottom() + // Specifically, scrolling to the bottom does not like image embeds. + // This needs to be reworked entirely before it can be reimplimented + // if (last_message_user === username && elapsed_minutes < 1 && last_item){ + // message = "
" + message + // last_item.text = last_item.text += "\n" + message; + // scrollToBottom() + // last_message_time = new Date(); + // return; + // } last_message_user = username; last_message_time = new Date();