Open yukithm opened 5 years ago
update.args contains msg and options. Not multiple messages. args[0] is msg args[1] is options
update.args
msg
options
args[0]
args[1]
See https://github.com/RocketChat/Rocket.Chat/blob/6c3c3790c65a4de87f6b36f219fe2d6b6aad3c94/server/stream/messages.js#L27
All committers have signed the CLA.
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.
update.args
containsmsg
andoptions
. Not multiple messages.args[0]
ismsg
args[1]
isoptions
See https://github.com/RocketChat/Rocket.Chat/blob/6c3c3790c65a4de87f6b36f219fe2d6b6aad3c94/server/stream/messages.js#L27