add request invite

This commit is contained in:
pypy
2020-10-25 17:01:38 +09:00
parent 69a39b6d0a
commit c0f2a87817
2 changed files with 14 additions and 0 deletions

View File

@@ -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);

View File

@@ -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