Browse Source

fix(RightSidebar): move unread messages notifications discard to RightSidebar

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
pull/12906/head
Grigorii K. Shartsev 1 year ago
parent
commit
be7d798714
  1. 3
      src/components/RightSidebar/RightSidebar.vue
  2. 1
      src/components/TopBar/TopBar.vue

3
src/components/RightSidebar/RightSidebar.vue

@ -391,6 +391,9 @@ export default {
beforeDestroy() {
unsubscribe('spreed:select-active-sidebar-tab', this.handleUpdateActive)
// Discard current chat notifications
this.notifyUnreadMessages(null)
},
methods: {

1
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)

Loading…
Cancel
Save