diff --git a/html/src/app.js b/html/src/app.js index 9ae47ea8..4d9dfb8c 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -6221,6 +6221,19 @@ CefSharp.BindObjectAsync( } } }); + } else if (command === 'Request Invite') { + API.sendNotification({ + receiverUserId: D.id, + type: 'requestInvite', + message: '', + seen: false, + details: { + platform: 'standalonewindows' + } + }).then((args) => { + this.$message('Request invite sent'); + return args; + }); } else if (command === 'Show Avatar Author') { var { currentAvatarImageUrl } = D.ref; var id = extractFileId(currentAvatarImageUrl); diff --git a/html/src/index.pug b/html/src/index.pug index b3f125eb..2075a315 100644 --- a/html/src/index.pug +++ b/html/src/index.pug @@ -660,6 +660,7 @@ html el-dropdown-item(icon="el-icon-switch-button" command="Logout" divided) Logout template(v-else) template(v-if="userDialog.isFriend") + el-dropdown-item(icon="el-icon-postcard" command="Request Invite") Request Invite //- el-dropdown-item(icon="el-icon-message" command="Message") Message template(v-else-if="userDialog.incomingRequest") el-dropdown-item(icon="el-icon-check" command="Accept Friend Request") Accept Friend Request