RocketChat / Rocket.Chat.js.SDK

Utility for apps and bots to interact with Rocket.Chat via DDP and/or API
MIT License
136 stars 94 forks source link

[bugfix] Fixed Cannot read property _id of undefined #132

Open bkrith opened 3 years ago

bkrith commented 3 years ago

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

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

ggazzo commented 3 years ago

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?