Rocket.Chat.js.SDK icon indicating copy to clipboard operation
Rocket.Chat.js.SDK copied to clipboard

[bugfix] Fixed Cannot read property _id of undefined

Open bkrith opened this issue 3 years ago • 2 comments

Added a check for message object if is an Array and fix some extra compiling issues in Typescript.

bkrith avatar Apr 10 '21 20:04 bkrith

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 10 '21 20:04 CLAassistant

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?

ggazzo avatar Jun 15 '21 18:06 ggazzo