Rocket.Chat.js.SDK
Rocket.Chat.js.SDK copied to clipboard
[bugfix] Fixed Cannot read property _id of undefined
Added a check for message object if is an Array and fix some extra compiling issues in Typescript.
hey @bkrith which version of rocket.chat are you using? I'm afraid we fixed this issue here https://github.com/RocketChat/Rocket.Chat/pull/20930
although your suggestion "fixes" the "expected" behavior/issue, we shouldn't be receiving an array of messages (even more an array containing an single item) no matter what, that's because the error was server-side problem! can you check if my explanation makes sense?