Skip to content
Draft
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions src/components/NewMessageModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,9 @@ export default {
this.mainStore.setComposerIndicatorDisabledMutation(true)
await this.onMinimize()

window.removeEventListener('beforeunload', this.onBeforeUnload)
window.removeEventListener('resize', this.checkScreenSize)

// End the session only if all unsaved changes have been saved
if (this.canSaveDraft && ((this.changed && this.draftSaved) || !this.changed)) {
logger.debug('Closing composer session due to close button click')
Expand Down
Loading