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

@ -119,7 +119,7 @@ const Status = {
return hits
},
muted () {
const relationship = this.$store.state.users.relationships[this.status.user.id] || {}
const relationship = this.$store.getters.relationship(this.userId)
return !this.unmuted && (
(!(this.inProfile && this.status.user.id === this.profileUserId) && relationship.muting) ||
(!this.inConversation && this.status.thread_muted) ||