Commit 6a6fb6af authored by Guido Gunther's avatar Guido Gunther
Browse files

conversation: Reverse messages in each log

While b7360ff1 took care of not
discarding new messges the reversion of the list resulted in reversed
entries for each log file (so the overall history was in the correct
order but each converstion was reversed).

We go this way around instead of using g_list_append() since the later
is slower.

Fix that by going through each log back to front.
parent 9236c2f8
Pipeline #1811 passed with stage
in 1 minute and 37 seconds
......@@ -570,7 +570,7 @@ chatty_add_message_history_to_conv (gpointer data)
logs = g_strsplit (stripped, "\n", -1);
for (int num = 0; num < (g_strv_length (logs) - 1); num++) {
for (int num = g_strv_length (logs) - 1; num >= 0; num--) {
log_data = parse_message (logs[num]);
if (log_data) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment