-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
feat!: Restrict livechat visitors to their source type scope #33760
Closed
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9774957
feat: add channelName property to ILivechatVisitor
matheusbsilva137 6060945
feat: check only for visitors within the app context in the livechat …
matheusbsilva137 4bd9dbf
feat: restrict visitors by channelName in the SMS messages flow
matheusbsilva137 39e9576
feat: restrict visitors by channelName in the Email inbox messages flow
matheusbsilva137 7c621d3
feat: restrict visitors by channelName in the API and Widget messages…
matheusbsilva137 be799bd
feat: restrict visitors by channelName in the UI kit messages flow
matheusbsilva137 92a6cfc
replace channelName by source
matheusbsilva137 d7f5f85
Remove channelName
matheusbsilva137 386adbe
do not use target phone (destination) to differ visitors
matheusbsilva137 afc473f
tests: add end-to-end tests
matheusbsilva137 0c29c2a
fix typecheck
matheusbsilva137 9d03eaa
fix lint and typecheck
matheusbsilva137 2c6e1dc
fix nested queries
matheusbsilva137 0161ec9
Create changeset
matheusbsilva137 0961db1
improve methods names
matheusbsilva137 65b2147
apply changes requested to tests
matheusbsilva137 a3dd975
Fix typecheck
matheusbsilva137 26b7464
Update message.ts
matheusbsilva137 c98750d
Apply more changes requested
matheusbsilva137 45604bf
Revert changes to findGuest function
matheusbsilva137 e069568
apply changes requested
matheusbsilva137 a5696b2
Undo typing improvements
matheusbsilva137 bff9207
do not restrict visitors on uikit block
pierre-lehnen-rc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@rocket.chat/meteor": minor | ||
"@rocket.chat/apps": minor | ||
"@rocket.chat/core-typings": minor | ||
"@rocket.chat/model-typings": minor | ||
--- | ||
|
||
Adds a `source` field to livechat visitors, which stores the channel (eg API, widget, SMS, email-inbox, app) that's been used by the visitor to send messages. | ||
Uses the new `source` field to assure each visitor is linked to a single source, so that each connection through a distinct channel creates a new visitor. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Some changes should be tagged as major now, shouldn't they? Not sure about core and model typings