don't send an invitation to yourself when busy status

This commit is contained in:
pypy
2020-05-16 19:09:28 +09:00
parent f17555154b
commit d5dd08ed97

View File

@@ -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: '',