-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Fix Closed chats doesn't shows who picked the call #22368
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
Merged
renatobecker
merged 10 commits into
omnichannel/prioritized-issues
from
omnichannel/improve-chat-take-it-option
Jun 18, 2021
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
60ecca2
Fix Closed chats doesn't shows who picked the call
murtaza98 0033281
remove all subscriptions of a room once the chat is forwarded or move…
murtaza98 a56e32a
Show 'Take It' button if the room does not have the serving agent
murtaza98 662040c
remove unncessary condition
murtaza98 a0625ba
update conditions
murtaza98 618cb7f
apply suggestions from code review
murtaza98 a85c120
Apply suggestions from code review
murtaza98 48304f5
convert Subscriptions.insertOrUpsert to Subscriptions.insert
murtaza98 5cc2bc5
Improve condition
murtaza98 d384117
Merge branch 'omnichannel/prioritized-issues' of github.com:RocketCha…
tiagoevanp 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 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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Hey Murtaza, I know this is an old PR, but, would you mind explaining me this change? 👀
I just want to know what's fixing, since I'm looking at a related issue and wanted to understand why this was needed
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.
Hey, @KevLehman This change was needed to ensure that we show the
Take Itbutton on the chat if there are no agents assigned to a chat yet.Before this change, we were only showing that button if the "Manual Selection" algorithm was on. However, we ran into a situation (on servers running other algorithms than manual) where LiveChat managers were using the "Current Chats" panel to send messages to unassigned chats - this resulted in chats that were actually answered but not assigned to any agents - since the manually answered those chats and didn't get the routing algorithm involved.
Hence we added a new rule here where we decided that if any manager wants to answer an unassigned chat, then they'd first have to "Take it" ..... Hence I added this new condition here -
!room.servedBy.Let me know if you need any further help with this 😄