summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-06-23 10:42:19 +0200
committerGitHub <noreply@github.com>2021-06-23 10:42:19 +0200
commit4974b3d1f7e0bb444dabea963db97e3fb860135f (patch)
treec98935c9345618f54bdec23ceae5f19eb0bdfde2 /src
parent17b749ab3bbb55ae932ed0a0dce2324dd89e7b49 (diff)
parentd212ef76f45e96d89e9dcf35142f3a0bc4a34ca4 (diff)
Merge pull request #5843 from nextcloud/bugfix/5842/fix-unload-warning-pending-messages
Fix unload warning with pending messages
Diffstat (limited to 'src')
-rw-r--r--src/App.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/App.vue b/src/App.vue
index c40ce3607..fbb847040 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -31,7 +31,7 @@
</AppContent>
<RightSidebar
:show-chat-in-sidebar="isInCall" />
- <PreventUnload :when="warnLeaving" />
+ <PreventUnload :when="warnLeaving || isSendingMessages" />
<UploadEditor />
<SettingsDialog />
<ConversationSettingsDialog />
@@ -109,8 +109,12 @@ export default {
return this.$store.getters.getUserId()
},
+ isSendingMessages() {
+ return this.$store.getters.isSendingMessages
+ },
+
warnLeaving() {
- return this.$store.getters.isSendingMessages || (!this.isLeavingAfterSessionIssue && this.isInCall)
+ return !this.isLeavingAfterSessionIssue && this.isInCall
},
/**