mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 07:27:17 +02:00
Remove message appending.
Signed-off-by: Armored Dragon <publicmail@armoreddragon.com>
This commit is contained in:
parent
d8abae2c31
commit
f222323ef0
1 changed files with 11 additions and 7 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue