Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export default {
window.addEventListener('beforeunload', this.preventUnload)
},

beforeDestroy() {
beforeUnmount() {
this.debounceRefreshCurrentConversation.clear?.()
if (!getCurrentUser()) {
EventBus.off('should-refresh-conversations', this.debounceRefreshCurrentConversation)
Expand Down
2 changes: 1 addition & 1 deletion src/FilesSidebarCallViewApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default {
window.addEventListener('beforeunload', this.preventUnload)
},

beforeDestroy() {
beforeUnmount() {
window.removeEventListener('beforeunload', this.preventUnload)
},

Expand Down
2 changes: 1 addition & 1 deletion src/PublicShareSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
})
},

beforeDestroy() {
beforeUnmount() {
window.removeEventListener('beforeunload', this.preventUnload)
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/AdminSettings/AllowedGroups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default {
this.debounceSearchGroup('')
},

beforeDestroy() {
beforeUnmount() {
this.debounceSearchGroup.clear?.()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/AdminSettings/Federation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default {
this.debounceSearchGroup('')
},

beforeDestroy() {
beforeUnmount() {
this.debounceSearchGroup.clear?.()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/AdminSettings/RecordingServers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default {
this.uploadLimit = parseInt(state.uploadLimit, 10)
},

beforeDestroy() {
beforeUnmount() {
this.debounceUpdateServers.clear?.()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/AdminSettings/SIPBridge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default {
this.isDialoutSupported()
},

beforeDestroy() {
beforeUnmount() {
this.debounceSearchGroup.clear?.()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/AdminSettings/SignalingServers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default {
this.hideWarning = state.hideWarning
},

beforeDestroy() {
beforeUnmount() {
this.debounceUpdateServers.clear?.()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/AdminSettings/StunServers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default {
this.debounceUpdateServers = debounce(this.updateServers, 1000)
},

beforeDestroy() {
beforeUnmount() {
this.debounceUpdateServers.clear?.()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/AdminSettings/TurnServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default {
this.testingSuccess = false
},

beforeDestroy() {
beforeUnmount() {
this.debounceTestServer.clear?.()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/AdminSettings/TurnServers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default {
this.servers = loadState('spreed', 'turn_servers')
},

beforeDestroy() {
beforeUnmount() {
this.debounceUpdateServers.clear?.()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/CallView/CallView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export default {
subscribe('set-background-blurred', this.setBackgroundBlurred)
},

beforeDestroy() {
beforeUnmount() {
this.debounceFetchPeers.clear?.()
this.$store.dispatch('isEmptyCallView', true)
EventBus.off('refresh-peer-list', this.debounceFetchPeers)
Expand Down
2 changes: 1 addition & 1 deletion src/components/CallView/Grid/Grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export default {

window.OCA.Talk.gridDebugInformation = this.gridDebugInformation
},
beforeDestroy() {
beforeUnmount() {
this.debounceMakeGrid.clear?.()
window.OCA.Talk.gridDebugInformation = () => console.debug('Not in a call')

Expand Down
2 changes: 1 addition & 1 deletion src/components/CallView/shared/LocalAudioControlButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default {
subscribe('local-audio-control-button:toggle-audio', this.updateDeviceState)
},

beforeDestroy() {
beforeUnmount() {
unsubscribe('local-audio-control-button:toggle-audio', this.updateDeviceState)
},

Expand Down
4 changes: 2 additions & 2 deletions src/components/CallView/shared/LocalVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ export default {
}
},

beforeDestroy() {
beforeUnmount() {
if (this.resizeObserver) {
this.resizeObserver.disconnect()
}
},

destroyed() {
unmounted() {
if (this.notificationHandle) {
this.notificationHandle.hideToast()
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/CallView/shared/LocalVideoControlButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default {
subscribe('local-video-control-button:toggle-video', this.updateDeviceState)
},

beforeDestroy() {
beforeUnmount() {
unsubscribe('local-video-control-button:toggle-video', this.updateDeviceState)
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/CallView/shared/PresenterOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default {
window.addEventListener('resize', this.updateSize)
},

beforeDestroy() {
beforeUnmount() {
window.removeEventListener('resize', this.updateSize)
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/CallView/shared/ReactionToaster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default {
subscribe('send-reaction', this.handleOwnReaction)
},

beforeDestroy() {
beforeUnmount() {
clearInterval(this.intervalId)
unsubscribe('send-reaction', this.handleOwnReaction)
Object.keys(this.registeredModels).forEach(modelId => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/CallView/shared/VideoVue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -533,13 +533,13 @@ export default {
}
},

beforeDestroy() {
beforeUnmount() {
if (this.resizeObserver) {
this.resizeObserver.disconnect()
}
},

destroyed() {
unmounted() {
this.sharedData.remoteVideoBlocker.decreaseVisibleCounter()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/CallView/shared/ViewerOverlayCallView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default {
this.observer.observe(this.$refs.ghost)
},

beforeDestroy() {
beforeUnmount() {
this.observer.disconnect()
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export default {

},

beforeDestroy() {
beforeUnmount() {
unsubscribe('show-conversation-settings', this.handleShowSettings)
unsubscribe('hide-conversation-settings', this.handleHideSettings)
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConversationSettings/ListableSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default {
}
},

beforeDestroy() {
beforeUnmount() {
if (this.lastNotification) {
this.lastNotification.hideToast()
this.lastNotification = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ export default {
beforeMount() {
},

beforeDestroy() {
beforeUnmount() {
},

methods: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/LeftSidebar/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ export default {
this.handleFilter(BrowserStorage.getItem('filterEnabled'))
},

beforeDestroy() {
beforeUnmount() {
this.debounceFetchSearchResults.clear?.()
this.debounceFetchConversations.clear?.()
this.debounceHandleScroll.clear?.()
Expand Down
2 changes: 1 addition & 1 deletion src/components/MediaSettings/MediaSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ export default {
}
},

beforeDestroy() {
beforeUnmount() {
unsubscribe('talk:media-settings:show', this.showModal)
unsubscribe('talk:media-settings:hide', this.closeModalAndApplySettings)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ export default {
EventBus.on('highlight-message', this.highlightMessage)
},

beforeDestroy() {
beforeUnmount() {
EventBus.off('highlight-message', this.highlightMessage)
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ export default {
img.src = this.previewUrl
},

beforeDestroy() {
beforeUnmount() {
this.uploadManager = null
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/MessagesList/MessagesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export default {
}, 30000)
},

beforeDestroy() {
beforeUnmount() {
this.debounceUpdateReadMarkerPosition.clear?.()
this.debounceHandleScroll.clear?.()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default {
})
},

beforeDestroy() {
beforeUnmount() {
this.debounceFetchSearchResults.clear?.()

this.cancelSearchPossibleConversations()
Expand Down
2 changes: 1 addition & 1 deletion src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ export default {
}
},

beforeDestroy() {
beforeUnmount() {
EventBus.off('focus-chat-input', this.focusInput)
EventBus.off('upload-start', this.handleUploadSideEffects)
EventBus.off('upload-discard', this.handleUploadSideEffects)
Expand Down
2 changes: 1 addition & 1 deletion src/components/NewMessage/NewMessageAudioRecorder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default {
this.$store.dispatch('initializeAudioEncoder')
},

beforeDestroy() {
beforeUnmount() {
this.killStreams()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/PollViewer/PollViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default {
EventBus.on('talk:poll-added', this.showPollToast)
},

beforeDestroy() {
beforeUnmount() {
EventBus.off('talk:poll-added', this.showPollToast)
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
}
},

beforeDestroy() {
beforeUnmount() {
// Clear the interval
clearInterval(this.breakoutRoomsParticipantsInterval)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default {
subscribe('user_status:status.updated', this.updateUserStatus)
},

beforeDestroy() {
beforeUnmount() {
this.debounceFetchSearchResults.clear?.()

EventBus.off('route-change', this.abortSearch)
Expand Down
2 changes: 1 addition & 1 deletion src/components/RightSidebar/RightSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export default {
subscribe('spreed:select-active-sidebar-tab', this.handleUpdateActive)
},

beforeDestroy() {
beforeUnmount() {
unsubscribe('spreed:select-active-sidebar-tab', this.handleUpdateActive)
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default {
this.firstFetchItems(this.activeTab)
},

beforeDestroy() {
beforeUnmount() {
this.debounceHandleScroll.clear?.()
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/SettingsDialog/SettingsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export default {
this.showSettings = true
},

beforeDestroy() {
beforeUnmount() {
unsubscribe('show-settings', this.handleShowSettings)
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/TopBar/CallTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default {
this.timer = setInterval(this.computeElapsedTime, 1000)
},

beforeDestroy() {
beforeUnmount() {
clearInterval(this.timer)
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/TopBar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export default {
document.addEventListener('webkitfullscreenchange', this.fullScreenChanged, false)
},

beforeDestroy() {
beforeUnmount() {
this.notifyUnreadMessages(null)
document.removeEventListener('fullscreenchange', this.fullScreenChanged, false)
document.removeEventListener('mozfullscreenchange', this.fullScreenChanged, false)
Expand Down
2 changes: 1 addition & 1 deletion src/components/TopBar/TopBarMediaControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export default {
this.speakingWhileMutedWarner = new SpeakingWhileMutedWarner(this.model, this)
},

beforeDestroy() {
beforeUnmount() {
this.speakingWhileMutedWarner.destroy()
},

Expand Down