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

realtime: fix message decoding

Open yukithm opened this issue 7 years ago • 2 comments

update.args contains msg and options. Not multiple messages. args[0] is msg args[1] is options

See https://github.com/RocketChat/Rocket.Chat/blob/6c3c3790c65a4de87f6b36f219fe2d6b6aad3c94/server/stream/messages.js#L27

yukithm avatar Sep 26 '18 03:09 yukithm

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 26 '18 03:09 CLAassistant

Thanks for the contribution!

That's technically not the only place a message can be sent. We need to confirm no update event would ever contain more than one message.

I'm not confident that no place does currently.

geekgonecrazy avatar Sep 27 '18 16:09 geekgonecrazy