Remove message appending.

Signed-off-by: Armored Dragon <publicmail@armoreddragon.com>
This commit is contained in:
Armored Dragon 2024-08-17 04:28:24 -05:00
parent d8abae2c31
commit f222323ef0
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -487,13 +487,17 @@ Rectangle {
var last_item_index = channel.count - 1; var last_item_index = channel.count - 1;
var last_item = channel.get(last_item_index); var last_item = channel.get(last_item_index);
if (last_message_user === username && elapsed_minutes < 1 && last_item){ // FIXME: When adding a new message this would check to see if we could append the incoming message
message = "<br>" + message // to the bottom of the last message. This current implimentation causes issues with scrollToBottom()
last_item.text = last_item.text += "\n" + message; // Specifically, scrolling to the bottom does not like image embeds.
scrollToBottom() // This needs to be reworked entirely before it can be reimplimented
last_message_time = new Date(); // if (last_message_user === username && elapsed_minutes < 1 && last_item){
return; // message = "<br>" + message
} // last_item.text = last_item.text += "\n" + message;
// scrollToBottom()
// last_message_time = new Date();
// return;
// }
last_message_user = username; last_message_user = username;
last_message_time = new Date(); last_message_time = new Date();