Skip to content

Commit

Permalink
fix(chat): reset active conversation on chat leave
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexZakablukov authored and stavares843 committed May 17, 2022
1 parent 8845ff1 commit 4eae6ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ export default Vue.extend({
}
},
},
beforeDestroy() {
// reset active conversation on chat leave
this.$store.commit('textile/setActiveConversation', '')
},
mounted() {
this.$Sounds.changeLevels(this.audio.volume / 100)
Expand Down

0 comments on commit 4eae6ed

Please sign in to comment.