add back mute prediction, add getter for relationships

This commit is contained in:
Shpuld Shpuldson 2020-04-24 18:53:17 +03:00
parent f6fce92cf7
commit af9492977a
9 changed files with 21 additions and 8 deletions

View file

@ -351,13 +351,13 @@ const UserSettings = {
},
filterUnblockedUsers (userIds) {
return reject(userIds, (userId) => {
const relationship = this.$store.state.users.relationships[userId] || {}
const relationship = this.$store.getters.relationship(this.userId)
return relationship.blocking || userId === this.$store.state.users.currentUser.id
})
},
filterUnMutedUsers (userIds) {
return reject(userIds, (userId) => {
const relationship = this.$store.state.users.relationships[userId] || {}
const relationship = this.$store.getters.relationship(this.userId)
return relationship.muting || userId === this.$store.state.users.currentUser.id
})
},