Channel history is not being fetched in JavaScript/TypeScript Photon Chat SDK

Hello! I have a trouble with Photon Chat JS SDK. Whenever I provide `historyLength` param in `ChatClient.subscribe` method, it doesn't fetch this channel actual history, it just saves an empty array. It seems like a bug in JS SDK itself. How can I resolve this issue? Thank you.