`delete_message_from_history` follows `childrenIds` down to the deepest leaf without recording where it has been. Record it.