Fixes: #8983 Since collections in MongoDB cannot be deserialized to custom types anymore, add a new `DocumentToMessageHistoryConverter` to convert the `Document` with `components` into a `MessageHistory` instance back **Auto-cherry-pick to `6.2.x`**
Fixes: #8983 Since collections in MongoDB cannot be deserialized to custom types anymore, add a new `DocumentToMessageHistoryConverter` to convert the `Document` with `components` into a `MessageHistory` instance back **Auto-cherry-pick to `6.2.x`**