-
Notifications
You must be signed in to change notification settings - Fork 13.1k
[FIX] Omnichannel/Twilio - When a file is sent as first message, chat is not queued #22590
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
[FIX] Omnichannel/Twilio - When a file is sent as first message, chat is not queued #22590
Conversation
| console.error(`Attachment upload failed: ${ e.message }`); | ||
| attachment = { | ||
| fields: [{ | ||
| title: 'User upload failed', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add translations for this. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good 🤔 , what I think is that the FE won't translate message content, even if it looks like a translation string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For translations we usually use this method which picks up the translations from the i18n folder. So earlier in my comment I was suggesting to add the translations within the translation files and modify this to something like
| title: 'User upload failed', | |
| title: t('sms_upload_failed'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 but that would add a dependency on meteor for the code, and I know the team collab team is trying to reduce meteor's usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh.. wasn't aware of this 😕 if that's the case, how are they proposing to handle the translations, any idea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not actually as far as I know :(
| attachment = { | ||
| fields: [{ | ||
| title: 'User upload failed', | ||
| value: 'An attachment was received, but upload to server failed', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add translations for this. WDYT?
|
Tested this PR and it fixes the issue we're facing earlier |
…improve/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listMerge branch 'develop' of github.com:RocketChat/Rocket.Chat into fix/attachment_emoji * 'develop' of github.com:RocketChat/Rocket.Chat: (119 commits) [IMPROVE] Configuration for indices in Apps-Engine models (#22705) [FIX] Use room's last message time when visitor did not send any message (#22695) F room doesnt exists error when uploading file as first message (#22590) [IMPROVE] Refactor `livechat.registerGuest` function (#22684) change livechat_enabled default value to true (#22697) Chore: added pagination to search msg endpoint (#22632) Fixed crush in the getChannelHistory method (#22667) Regression: Fix ee microservices build (#22656) [IMPROVE] Rewrite sidebar footer as React Component (#22687) [FIX] Livechat config endpoint is not returning all settings (#22686) [FIX] Info page - Instances card modal table width #22627 Bump version to 3.16.3 fixed - room still listed after delete (#22613) Chore: Use projection instead of fields to avoid error log (#22629) [FIX] VisitorClientInfo not showing (#22593) Create README.md (#22615) [NEW] REST endpoint to remove User from Role (#20485) Bump version to 3.16.2 Regression: Change the name of called methods in Users model (#22620) [FIX] Markdown for UiKit blocks (#22619) ...
…status-message * 'develop' of github.com:RocketChat/Rocket.Chat: (114 commits) [FIX] Remove team's related actions inside of discussion #22470 [IMPROVE] Configuration for indices in Apps-Engine models (#22705) [FIX] Use room's last message time when visitor did not send any message (#22695) F room doesnt exists error when uploading file as first message (#22590) [IMPROVE] Refactor `livechat.registerGuest` function (#22684) change livechat_enabled default value to true (#22697) Chore: added pagination to search msg endpoint (#22632) Fixed crush in the getChannelHistory method (#22667) Regression: Fix ee microservices build (#22656) [IMPROVE] Rewrite sidebar footer as React Component (#22687) [FIX] Livechat config endpoint is not returning all settings (#22686) [FIX] Info page - Instances card modal table width #22627 Bump version to 3.16.3 fixed - room still listed after delete (#22613) Chore: Use projection instead of fields to avoid error log (#22629) [FIX] VisitorClientInfo not showing (#22593) Create README.md (#22615) [NEW] REST endpoint to remove User from Role (#20485) Bump version to 3.16.2 Regression: Change the name of called methods in Users model (#22620) ...
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments