Change behavior of `getParentID`: when `getParentID` gets called on an external ID and more than one message with that ID is found, inspect the metadata flags and if only one of those messages is `MessageFlagSent`, then choose that as the parent.