From d5dd08ed9787173e419a7f065e186517ff65ace0 Mon Sep 17 00:00:00 2001 From: pypy Date: Sat, 16 May 2020 19:09:28 +0900 Subject: [PATCH] don't send an invitation to yourself when busy status --- html/src/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/html/src/app.js b/html/src/app.js index c7cf3568..159622bd 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -6598,6 +6598,14 @@ CefSharp.BindObjectAsync( D.loading === true) { return; } + if (this.API.currentUser.status === 'busy' && + D.userIds.includes(this.API.currentUser.id) === true) { + this.$message({ + message: 'You can\'t invite yourself in \'Do Not Disturb\' mode', + type: 'error' + }); + return; + } D.loading = true; var params = { receiverUserId: '',