diff --git a/src/components/RightSidebar/RightSidebar.vue b/src/components/RightSidebar/RightSidebar.vue index 59e87a9dac2..eaa63205759 100644 --- a/src/components/RightSidebar/RightSidebar.vue +++ b/src/components/RightSidebar/RightSidebar.vue @@ -369,6 +369,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 c524e28f912..f3cc8509d72 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -268,7 +268,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)