diff --git a/src/components/RightSidebar/RightSidebar.vue b/src/components/RightSidebar/RightSidebar.vue index 24310abcf73..4fcdd03a911 100644 --- a/src/components/RightSidebar/RightSidebar.vue +++ b/src/components/RightSidebar/RightSidebar.vue @@ -390,6 +390,9 @@ export default { if (this.$refs.participantsTab) { this.$refs.participantsTab.$el.scrollTop = 0 } + + // Discard notification if the conversation changes or closed + this.notifyUnreadMessages(null) }, isModeratorOrUser(newValue) { diff --git a/src/components/TopBar/TopBar.vue b/src/components/TopBar/TopBar.vue index 0efedd6af4f..5b0a0b9065d 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -274,7 +274,6 @@ export default { }, beforeDestroy() { - this.notifyUnreadMessages(null) document.removeEventListener('fullscreenchange', this.fullScreenChanged, false) document.removeEventListener('mozfullscreenchange', this.fullScreenChanged, false) document.removeEventListener('MSFullscreenChange', this.fullScreenChanged, false)