fix js error on mute

This commit is contained in:
shpuld 2019-08-10 15:53:46 +03:00
parent 7e2d48a26e
commit f1bdbeabf0

View file

@ -18,13 +18,11 @@ const ExtraButtons = {
.catch(err => this.$emit('onError', err.error.error)) .catch(err => this.$emit('onError', err.error.error))
}, },
muteConversation () { muteConversation () {
this.refreshPopper()
this.$store.dispatch('muteConversation', this.status.id) this.$store.dispatch('muteConversation', this.status.id)
.then(() => this.$emit('onSuccess')) .then(() => this.$emit('onSuccess'))
.catch(err => this.$emit('onError', err.error.error)) .catch(err => this.$emit('onError', err.error.error))
}, },
unmuteConversation () { unmuteConversation () {
this.refreshPopper()
this.$store.dispatch('unmuteConversation', this.status.id) this.$store.dispatch('unmuteConversation', this.status.id)
.then(() => this.$emit('onSuccess')) .then(() => this.$emit('onSuccess'))
.catch(err => this.$emit('onError', err.error.error)) .catch(err => this.$emit('onError', err.error.error))