chore: remove deprecated methods for livechat in 8.0 #7058
Merged
diegolmello merged 17 commits intodevelopfrom Mar 24, 2026
Merged
chore: remove deprecated methods for livechat in 8.0 #7058diegolmello merged 17 commits intodevelopfrom
diegolmello merged 17 commits intodevelopfrom
Conversation
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughUpdates REST endpoint definitions (omnichannel + users) and modifies client-side logic to prefer new REST endpoints for server versions >= 8.0.0 while preserving legacy SDK method-wrapper fallbacks for older servers. Changes
Sequence Diagram(s)sequenceDiagram
participant UI as Client UI
participant Service as restApi Service
participant Store as Redux Store
participant SDK as SDK (methodCallWrapper / REST)
participant Server as Server API
UI->>Service: invoke action (change status / resume / close / forward / send confirmation / get tags)
Service->>Store: read server.version
alt server.version >= "8.0.0"
Service->>SDK: POST REST endpoint (e.g., livechat/agent.status, livechat/room.resumeOnHold, users.sendConfirmationEmail, livechat/room.closeByUser, livechat/room.forward, livechat/tags)
SDK->>Server: HTTP POST/GET to REST API
Server-->>SDK: REST response ({ success: boolean, ... })
SDK-->>Service: return response
else older server
Service->>SDK: call legacy method wrapper (e.g., livechat:changeLivechatStatus, livechat:resumeOnHold, sendConfirmationEmail, livechat:closeRoom, livechat:transfer, livechat:getTagsList)
SDK->>Server: DDP method call
Server-->>SDK: method response
SDK-->>Service: return response
end
Service-->>UI: resolve promise / return result
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Suggested labelstype: chore 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
65e1252 to
f765b05
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Remove deprecated methods based on https://docs.rocket.chat/docs/deprecated-and-phasing-out-features.
New endpoints
livechat/agent.statuslivechat/room.resumeOnHoldusers.sendConfirmationEmaillivechat/room.closeByUserlivechat/room.forwardlivechat/tagsDeprecated methods
livechat:changeLivechatStatuslivechat:resumeOnHoldsendConfirmationEmaillivechat:closeRoomlivechat:transferlivechat:getTagsListIssue(s)
https://rocketchat.atlassian.net/browse/SUP-1008
How to test or reproduce
Screenshots
Types of changes
Checklist
Further comments
Summary by CodeRabbit
New Features
Changes