1
0
mirror of https://github.com/craigerl/aprsd.git synced 2026-06-03 14:44:47 -04:00

Fixed scrolling problem with new webchat sent msg

The Webchat ui was failing to scroll properly upon sending
a new message from a tab that had a lot of messages already.
This commit is contained in:
2024-04-09 10:07:12 -04:00
parent 8728926bf4
commit 2e9cf3ce88
+1 -2
View File
@@ -413,7 +413,6 @@ function append_message(callsign, msg, msg_html) {
}
// Find the right div to place the html
new_callsign = add_callsign(callsign, msg);
update_callsign_path(callsign, msg);
append_message_html(callsign, msg_html, new_callsign);
@@ -502,7 +501,7 @@ function sent_msg(msg) {
msg_html = create_message_html(d, t, msg['from_call'], msg['to_call'], msg['message_text'], ack_id, msg, false);
append_message(msg['to_call'], msg, msg_html);
save_data();
scroll_main_content(msg['from_call']);
scroll_main_content(msg['to_call']);
}
function from_msg(msg) {