Skip to content

Commit

Permalink
Revert "Fix: Chats shown for agents even with 'hide_all_chats_for_age…
Browse files Browse the repository at this point in the history
…nt' enabled. sendingtk#166"

This reverts commit a0d0740.
  • Loading branch information
neocol83 committed Nov 24, 2024
1 parent 9c6e6f4 commit f52df23
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/javascript/dashboard/components/ChatList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default {
).map(({ key, count: countKey }) => ({
key,
name: this.$t(`CHAT_LIST.ASSIGNEE_TYPE_TABS.${key}`),
count: this.hideAllChatsForAgents ? 0 : this.conversationStats[countKey] || 0,
count: this.conversationStats[countKey] || 0,
}));
},
showAssigneeInConversationCard() {
Expand Down Expand Up @@ -385,9 +385,6 @@ export default {
},
conversationList() {
let conversationList = [];
if (this.hideAllChatsForAgents) {
return [];
}
if (!this.hasAppliedFiltersOrActiveFolders) {
const filters = this.conversationFilters;
if (this.activeAssigneeTab === 'me') {
Expand Down

0 comments on commit f52df23

Please sign in to comment.