-
Notifications
You must be signed in to change notification settings - Fork 13.1k
[FIX] Omnichannel - Fix issue with modals on room preview mode. #22541
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 - Fix issue with modals on room preview mode. #22541
Conversation
sampaiodiego
left a comment
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.
the process will not die in production, it should happen only in dev mode..
I have to ask, why is it calling to mark a room as read if the user/agent is not subscribed to that room in the first place?
|
Won't it? Unhandled promise rejections are always killing the server 😬 since they happen... somewhere in the process. The issue happens when the routing is set up as manual selection, so agents can see the rooms before "joining" them (so they don't have a subscription yet). |
nope.. see
I think in this scenario it should not be calling the endpoint then.. there is no reason to do it.. I think we should keep showing the error, because it is a handled error, and stop calling the endpoint.. from another point of view, if you call this API, referencing a room you're not a member of, I think the API should return 404 (or some other 40x), that's why I think we should keep the error. |
|
I think not calling the endpoint should be the appropiate way of handling that error, and I'll take a look at avoiding that. But 🤔 even when the |
great 👍
yeah, you're right. we're throwing the error, so we should handle it and return it to the end user.. |
d6ea019 to
7072ce1
Compare
The custom message will be the sent for the first incoming in the channels selected by the OutOfOffice User Added a second model OutOfOfficeRooms to effectively carry out search and send the OutOfOffice message parent 6ef35ed author aditya-mitra <[email protected]> 1625465055 +0530 committer aditya-mitra <[email protected]> 1626418539 +0530 Add Post Message Handler The custom message will be the sent for the first incoming in the channels selected by the OutOfOffice User Added a second model OutOfOfficeRooms to effectively carry out search and send the OutOfOffice message add post message check [FIX] Omnichannel - Fix issue with modals on room preview mode. (RocketChat#22541) * Await error on main thread so meteor can handle it * Fix an issue where clicking esc would trigger a room read on unsubscribed rooms Co-authored-by: Renato Becker <[email protected]> [FIX] Redirect to login after delete own account (RocketChat#22499) [FIX] UIKit URL prop being ignored for buttons (RocketChat#22579) Chore: Upgrade NPM dependencies (RocketChat#22562) Chore: Upgrade Micro Services NPM dependencies (RocketChat#22561) [FIX] Create Discussion modal - Parent room input not displaying correct room name RocketChat#22580 [IMPROVE] Rewrite OTR modals (RocketChat#22583) * improve: rewrite accept otr modal * improve: rewrite otr end modal * improve: deny otr modal * fix: lint Co-authored-by: gabriellsh <[email protected]> i18n: Language update from LingoHub 🤖 on 2021-07-05Z (RocketChat#22572) * Language update from LingoHub 🤖 Project Name: Rocket.Chat Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat User: Robot LingoHub Easy language translations with LingoHub 🚀 * remove translated variables Co-authored-by: Robot LingoHub <[email protected]> Co-authored-by: Diego Sampaio <[email protected]> Chore: [Snyk] Security upgrade node-gcm from 0.14.4 to 1.0.0 (RocketChat#22582) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-LODASH-1040724 [FIX] Livechat webhook request without headers (RocketChat#22589) [IMPROVE] Rewrite Enter Encryption Password Modal (RocketChat#22456) * improve: rewrite modal * fix: modal props * fix: translation key * fix: review Co-authored-by: gabriellsh <[email protected]> [NEW] Convert Team to Channel (RocketChat#22476) * wip * Add extra param to listRoomsOfUser to filter rooms user can delete * update the way permission was being checked * new: convert team to channel * fix: lastOwner warning * fix: review * improve: convert ChannelDesertationTable to ts * Remove unused prop Co-authored-by: Douglas Fabris <[email protected]> Co-authored-by: Kevin Aleman <[email protected]> Co-authored-by: Tasso Evangelista <[email protected]> [IMPROVE] Rewrite Save Encryption Password Modal (RocketChat#22447) * improve: rewrite modal * fix: translation keys * fix: review * fix: lint Co-authored-by: gabriellsh <[email protected]> Co-authored-by: Tasso Evangelista <[email protected]> [FIX] Error in permission check for getLivechatDepartmentByNameOrId method in Apps (RocketChat#22545) [FIX] Checks the list of agents if at least one is online (RocketChat#22584) Co-authored-by: Diego Sampaio <[email protected]> remove sent roomIds change OutOfOffice to OutOfOfficeUser model move date validation to update.ts correction in renaming (should be plural) add OutOfOfficeRooms model post message handler added fix lint errors [IMPROVE] Sidebar icons margins (RocketChat#22498) * Change components * Update fuselage Co-authored-by: Tasso Evangelista <[email protected]> [FIX] Convert Team to Channel menu order RocketChat#22606 Co-authored-by: Tasso Evangelista <[email protected]> [IMPROVE] Rewrite URL check modal (RocketChat#22540) * fix modal not being called * Rewrite url change modal Co-authored-by: Douglas Fabris <[email protected]> [FIX] Button overlapping modal RocketChat#22605 Co-authored-by: Tasso Evangelista <[email protected]> [FIX] User cannot delete own files in contextualbar RocketChat#22595 Co-authored-by: gabriellsh <[email protected]> Regression: Client crashing on startup (RocketChat#22610) [FIX] Confirm owner change process when deleting own account (RocketChat#22609) * fix: confirm owner change deleting own account * fix: missing return statement Co-authored-by: Tasso Evangelista <[email protected]> [FIX] Markdown for UiKit blocks (RocketChat#22619) Regression: Change the name of called methods in Users model (RocketChat#22620) [NEW] REST endpoint to remove User from Role (RocketChat#20485) * [WIP] added test * [WIP] added api endpoint to remove role from user * [WIP] added test with Subscription Scope * Update roles.js * fix endpoint params * update tests * remove .only Co-authored-by: Lucas Sartor Chauvin <[email protected]> Co-authored-by: Leonardo Ostjen Couto <[email protected]> Create README.md (RocketChat#22615) Add the Out of Office Scheduler Out of Office will be auto-disabled at the endDate and auto-enabled at the startDate Internally uses AgendaJS [FIX] VisitorClientInfo not showing (RocketChat#22593) * fix visitor info * fix prettier error * include host and ip Co-authored-by: Martin Schoeler <[email protected]> Chore: Use projection instead of fields to avoid error log (RocketChat#22629) fixed - room still listed after delete (RocketChat#22613) Co-authored-by: gabriellsh <[email protected]> [FIX] Prune messages from particular user(s) (RocketChat#22506) [FIX] Livechat apps permission error (RocketChat#22511) Bump version to 3.16.1 [FIX] Livechat webhook request without headers (RocketChat#22589) [FIX] Error in permission check for getLivechatDepartmentByNameOrId method in Apps (RocketChat#22545) [FIX] Checks the list of agents if at least one is online (RocketChat#22584) Co-authored-by: Diego Sampaio <[email protected]> Regression: Change the name of called methods in Users model (RocketChat#22620) Bump version to 3.16.2 Bump version to 3.16.3 [FIX] Info page - Instances card modal table width RocketChat#22627
If an agent access a livechat room before being subscripted to it, there's a chance the server will die due to an unhandled
invalid-subscriptionerror. This does not remove the error, but prevents the server from dying.Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments