Skip to content

Commit 2bcfd29

Browse files
committed
fix(RightSidebar): discard unread notifications on conversation change
Signed-off-by: Grigorii K. Shartsev <[email protected]>
1 parent be7d798 commit 2bcfd29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/RightSidebar/RightSidebar.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ export default {
369369
if (this.$refs.participantsTab) {
370370
this.$refs.participantsTab.$el.scrollTop = 0
371371
}
372+
373+
// Discard notification if the conversation changes
374+
this.notifyUnreadMessages(null)
372375
},
373376
374377
isModeratorOrUser(newValue) {
@@ -391,9 +394,6 @@ export default {
391394
392395
beforeDestroy() {
393396
unsubscribe('spreed:select-active-sidebar-tab', this.handleUpdateActive)
394-
395-
// Discard current chat notifications
396-
this.notifyUnreadMessages(null)
397397
},
398398
399399
methods: {

0 commit comments

Comments
 (0)