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

Reactions field inconsistency #160

Open kbrianps opened 1 year ago

kbrianps commented 1 year ago

Hi,

I'm creating a bot and I've realise that reactions field behavior is bit problematic.

Reactions field, as have been implemented, become a message object property when someone react and it's been deleted when someone unreact (undo your reaction). There's no signal that indicates a reaction have been removed. It's expected to reactions still exist (even empty or as 0), as other properties.

This turns the use of Message Object properties difficult, seems it's inconsistent.