mthread: keep toplevel thread date-order when pruning

Else this could result in a toplevel thread getting pruned, but its
child has an older date than was calculated by newest(), messing up the
order.
pull/124/head
Leah Neukirchen 6 years ago
parent d82e7d4555
commit 1288ade9ed

@ -307,7 +307,8 @@ prune_tree(struct container *c, int depth)
c->mid = c->child->mid;
c->file = c->child->file;
c->msg = c->child->msg;
c->date = c->child->date;
if (c->child->date > c->date)
c->date = c->child->date;
c->optional = c->child->optional;
c->child = c->child->child;
}

Loading…
Cancel
Save