Remove old muting logic

This commit is contained in:
taehoon 2019-03-01 11:37:34 -05:00
parent a6ce191cbc
commit 302310a653
5 changed files with 12 additions and 35 deletions

View file

@ -12,7 +12,7 @@ const MuteCard = {
return this.$store.getters.findUser(this.userId)
},
muted () {
return this.user.mastodonMuted
return this.user.muted
}
},
components: {

View file

@ -126,18 +126,12 @@ export default {
unblockUser () {
this.$store.dispatch('unblockUser', this.user.id)
},
muteUser () { // Mastodon Mute
muteUser () {
this.$store.dispatch('muteUser', this.user.id)
},
unmuteUser () { // Mastodon Unmute
unmuteUser () {
this.$store.dispatch('unmuteUser', this.user.id)
},
toggleMute () {
// TODO: Pleroma mute/unmute, Need to migrate to the Mastodon API
const store = this.$store
store.commit('setMuted', {user: this.user, muted: !this.user.muted})
store.state.api.backendInteractor.setUserMute(this.user)
},
setProfileView (v) {
if (this.switcher) {
const store = this.$store