Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realtime: fix message decoding #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yukithm
Copy link
Contributor

@yukithm yukithm commented Sep 26, 2018

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

`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
@CLAassistant
Copy link

CLAassistant commented Sep 26, 2018

CLA assistant check
All committers have signed the CLA.

@geekgonecrazy
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants