-
Notifications
You must be signed in to change notification settings - Fork 118
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
Error when a file is uploaded by a Livechat visitor #292
Comments
Can you confirm that applying this change solves your problem? |
Yeah, we applied the suggested changes locally and everything worked fine. |
Right, so would you like us to open the PR with those changes? Or would you rather do it, since you already have it applied? |
I can handle it, no worries. |
Closing in favor of: RocketChat/Rocket.Chat#18474 |
When a livechat end-user(visitor) uploads a file the following error is raised:
I took a look at the code and I guess I found the reason for the error:
https://github.com/RocketChat/Rocket.Chat/blob/develop/app/apps/server/converters/uploads.js#L56
Instead of:
const result = this.orch.getConverters().get('users').convertByToken(upload.visitorToken);
it should be:
const result = this.orch.getConverters().get('visitor').convertByToken(upload.visitorToken);
The text was updated successfully, but these errors were encountered: