Skip to content

Commit

Permalink
add onWsRestoredRefresh() for notification count
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Jan 31, 2025
1 parent 842d2d4 commit 4eaba3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,12 @@ export default {
this.chatStore.moreImportantSubtitleInfo = null;
},
onWsRestored() {
console.warn("REFRESH_ON_WEBSOCKET_RESTORED auto");
console.info("REFRESH_ON_WEBSOCKET_RESTORED auto");
bus.emit(REFRESH_ON_WEBSOCKET_RESTORED);
},
onWsRestoredRefresh() {
this.doOnFocus();
},
resetVideoInvitation() {
this.invitedVideoChatState = false;
this.$nextTick(()=>{
Expand Down Expand Up @@ -877,6 +880,7 @@ export default {
bus.on(WEBSOCKET_CONNECTED, this.onWsConnected);
bus.on(WEBSOCKET_LOST, this.onWsLost);
bus.on(WEBSOCKET_RESTORED, this.onWsRestored);
bus.on(REFRESH_ON_WEBSOCKET_RESTORED, this.onWsRestoredRefresh);
bus.on(VIDEO_CALL_INVITED, this.onVideoCallInvited);
bus.on(VIDEO_RECORDING_CHANGED, this.onVideRecordingChanged);
bus.on(VIDEO_CALL_USER_COUNT_CHANGED, this.onVideoCallChanged);
Expand All @@ -901,6 +905,7 @@ export default {
bus.off(WEBSOCKET_CONNECTED, this.onWsConnected);
bus.off(WEBSOCKET_LOST, this.onWsLost);
bus.off(WEBSOCKET_RESTORED, this.onWsRestored);
bus.off(REFRESH_ON_WEBSOCKET_RESTORED, this.onWsRestoredRefresh);
bus.off(VIDEO_CALL_INVITED, this.onVideoCallInvited);
bus.off(VIDEO_RECORDING_CHANGED, this.onVideRecordingChanged);
bus.off(VIDEO_CALL_USER_COUNT_CHANGED, this.onVideoCallChanged);
Expand Down

0 comments on commit 4eaba3e

Please sign in to comment.