Bulk export: doesn't finish when custom data directory is set
When the Directory config is set to something other than the default the bulk export crashes when exporting the emoji with the following error:
This is causing missing messages when running the export.
It is happening on 5.23.1 and 5.25.1
QA Test Steps
Tested and passed