-
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
Fix Closed chats doesn't shows who picked the call #22368
Conversation
…t/Rocket.Chat into omnichannel/improve-chat-take-it-option
* Fix Closed chats doesn't shows who picked the call * remove all subscriptions of a room once the chat is forwarded or moved back to queue * Show 'Take It' button if the room does not have the serving agent * remove unncessary condition * update conditions * apply suggestions from code review * Apply suggestions from code review * convert Subscriptions.insertOrUpsert to Subscriptions.insert * Improve condition Co-authored-by: Tiago Evangelista Pinto <[email protected]>
* Fix Closed chats doesn't shows who picked the call * remove all subscriptions of a room once the chat is forwarded or moved back to queue * Show 'Take It' button if the room does not have the serving agent * remove unncessary condition * update conditions * apply suggestions from code review * Apply suggestions from code review * convert Subscriptions.insertOrUpsert to Subscriptions.insert * Improve condition Co-authored-by: Tiago Evangelista Pinto <[email protected]>
* Fix Closed chats doesn't shows who picked the call * remove all subscriptions of a room once the chat is forwarded or moved back to queue * Show 'Take It' button if the room does not have the serving agent * remove unncessary condition * update conditions * apply suggestions from code review * Apply suggestions from code review * convert Subscriptions.insertOrUpsert to Subscriptions.insert * Improve condition Co-authored-by: Tiago Evangelista Pinto <[email protected]>
* Fix Closed chats doesn't shows who picked the call * remove all subscriptions of a room once the chat is forwarded or moved back to queue * Show 'Take It' button if the room does not have the serving agent * remove unncessary condition * update conditions * apply suggestions from code review * Apply suggestions from code review * convert Subscriptions.insertOrUpsert to Subscriptions.insert * Improve condition Co-authored-by: Tiago Evangelista Pinto <[email protected]>
* Fix Closed chats doesn't shows who picked the call * remove all subscriptions of a room once the chat is forwarded or moved back to queue * Show 'Take It' button if the room does not have the serving agent * remove unncessary condition * update conditions * apply suggestions from code review * Apply suggestions from code review * convert Subscriptions.insertOrUpsert to Subscriptions.insert * Improve condition Co-authored-by: Tiago Evangelista Pinto <[email protected]>
* Fix Closed chats doesn't shows who picked the call * remove all subscriptions of a room once the chat is forwarded or moved back to queue * Show 'Take It' button if the room does not have the serving agent * remove unncessary condition * update conditions * apply suggestions from code review * Apply suggestions from code review * convert Subscriptions.insertOrUpsert to Subscriptions.insert * Improve condition Co-authored-by: Tiago Evangelista Pinto <[email protected]>
* Fix Closed chats doesn't shows who picked the call * remove all subscriptions of a room once the chat is forwarded or moved back to queue * Show 'Take It' button if the room does not have the serving agent * remove unncessary condition * update conditions * apply suggestions from code review * Apply suggestions from code review * convert Subscriptions.insertOrUpsert to Subscriptions.insert * Improve condition Co-authored-by: Tiago Evangelista Pinto <[email protected]>
…ite/create_disc * 'develop' of github.com:RocketChat/Rocket.Chat: (27 commits) [IMPROVE] Preview message URLs only once (#22516) [FIX] Admin page crashing when commit hash is null (#22057) [FIX] Unnecessary space on members list footer (#22514) Chore: Review some dependencies (#22522) Chore: Meteor 2.2 and bump dependencies (#22399) Chore: Remove Sodium from the main client (#22459) [FIX] Prune messages from particular user(s) (#22506) [FIX] Livechat apps permission error (#22511) [IMPROVE] Message deletion modal #22508 Update README.md Update README.md [IMPROVE] Add pagination to tags, and improve current Agents pagination [FIX] Rewrite CurrentChats to TS (#22424) [FIX] Sort AutocompleteDepartmentsMultiple (#22419) [FIX] Put title into AutocompleteDepartment components (#22417) [FIX] Bugs in AutoCompleteDepartment (#22414) [FIX] Closed chats doesn't show who picked the call (#22368) [FIX] Omnichannel Real Time Monitoring chart not displaying chats-per-agent and chats-per-department (#22406) [IMPROVE] Paginated multiselect for EE tags (#22315) [FIX] Units Edit and adds the option to hide own department in useDepartmentList ...
| const inquiry = Template.instance().inquiry.get(); | ||
| return inquiry && inquiry.status === 'queued'; | ||
| const room = Template.instance().room.get(); | ||
| return (inquiry && inquiry.status === 'queued') || !room.servedBy; |
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 It button 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 😄
Proposed changes (including videos or screenshots)
Issue(s)
Clickup task: https://app.clickup.com/t/5999dv
Steps to test or reproduce
Further comments