downloadFilesForChannel relies on data downloaded by downloadMessages being persisted to disk, but was running before the file were written and was getting no files. This PR moves the downloadFilesForChannel call to after the data files are written
An alternative would have been to import messagesCache in download-messages, set the cache after paginating through conversation history, and tell downloadFilesForChannel's getMessages to use the cache, but that feels a bit messier
Fixes https://github.com/felixrieseberg/slack-archive/issues/12
downloadFilesForChannel
relies on data downloaded bydownloadMessages
being persisted to disk, but was running before the file were written and was getting no files. This PR moves thedownloadFilesForChannel
call to after the data files are writtenAn alternative would have been to import
messagesCache
in download-messages, set the cache after paginating through conversation history, and tell downloadFilesForChannel'sgetMessages
to use the cache, but that feels a bit messier