Skip to content

Commit

Permalink
Merge pull request #10524 from nextcloud/fix/10498/keep_opened_conver…
Browse files Browse the repository at this point in the history
…sation

fix(leftSidebar)- Keep the opened conversation in the list
  • Loading branch information
DorraJaouad authored Sep 18, 2023
2 parents ee644f2 + ada3baa commit fdda504
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/LeftSidebar/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,15 @@ export default {
}

if (this.isFiltered === 'unread') {
return this.conversationsList.filter(conversation => conversation.unreadMessages > 0 || conversation.hasCall)
return this.conversationsList.filter(conversation => conversation.unreadMessages > 0
|| conversation.hasCall || conversation.token === this.$store.getters.getToken())
}

if (this.isFiltered === 'mentions') {
return this.conversationsList.filter(conversation => conversation.unreadMention
|| conversation.hasCall
|| (conversation.unreadMessages > 0 && (conversation.type === CONVERSATION.TYPE.ONE_TO_ONE || conversation.type === CONVERSATION.TYPE.ONE_TO_ONE_FORMER)))
|| (conversation.unreadMessages > 0 && (conversation.type === CONVERSATION.TYPE.ONE_TO_ONE || conversation.type === CONVERSATION.TYPE.ONE_TO_ONE_FORMER))
|| conversation.token === this.$store.getters.getToken())
}

return this.conversationsList
Expand Down

0 comments on commit fdda504

Please sign in to comment.