fixed being unable to mute/unmute domains from status context menu

This commit is contained in:
Henry Jameson 2026-01-07 21:09:01 +02:00
commit 949aa90faa
2 changed files with 5 additions and 5 deletions

View file

@ -19,9 +19,9 @@ export default {
}, },
keypath () { keypath () {
if (this.type === 'domain') { if (this.type === 'domain') {
return 'status.mute_domain_confirm' return 'user_card.mute_domain_confirm'
} else if (this.type === 'conversation') { } else if (this.type === 'conversation') {
return 'status.mute_conversation_confirm' return 'user_card.mute_conversation_confirm'
} }
}, },
conversationIsMuted () { conversationIsMuted () {
@ -62,9 +62,9 @@ export default {
switch (this.type) { switch (this.type) {
case 'domain': { case 'domain': {
if (!this.domainIsMuted) { if (!this.domainIsMuted) {
this.$store.dispatch('muteDomain', { id: this.domain }) this.$store.dispatch('muteDomain', this.domain)
} else { } else {
this.$store.dispatch('unmuteDomain', { id: this.domain }) this.$store.dispatch('unmuteDomain', this.domain)
} }
break break
} }

View file

@ -65,7 +65,7 @@ export default {
return this.$store.dispatch('unmuteConversation', { id: this.status.id }) return this.$store.dispatch('unmuteConversation', { id: this.status.id })
}, },
unmuteDomain () { unmuteDomain () {
return this.$store.dispatch('unmuteDomain', this.user.id) return this.$store.dispatch('unmuteDomain', this.domain)
}, },
toggleUserMute () { toggleUserMute () {
if (this.userIsMuted) { if (this.userIsMuted) {