Fix: sidebar filters not applying bug for chatlist (#1938)

This commit is contained in:
Nithin David Thomas
2021-03-20 17:42:29 +05:30
committed by GitHub
parent 4657e5c713
commit 484c32fae3
5 changed files with 201 additions and 81 deletions

View File

@@ -150,24 +150,16 @@ export default {
},
conversationList() {
let conversationList = [];
const filters = this.conversationFilters;
if (this.activeAssigneeTab === 'me') {
conversationList = this.mineChatsList.slice();
conversationList = [...this.mineChatsList(filters)];
} else if (this.activeAssigneeTab === 'unassigned') {
conversationList = this.unAssignedChatsList.slice();
conversationList = [...this.unAssignedChatsList(filters)];
} else {
conversationList = this.allChatList.slice();
conversationList = [...this.allChatList(filters)];
}
if (!this.label) {
return conversationList;
}
return conversationList.filter(conversation => {
const labels = this.$store.getters[
'conversationLabels/getConversationLabels'
](conversation.id);
return labels.includes(this.label);
});
return conversationList;
},
activeTeam() {
if (this.teamId) {