diff --git a/html/src/app.js b/html/src/app.js
index fc064914..bff59675 100644
--- a/html/src/app.js
+++ b/html/src/app.js
@@ -6495,6 +6495,25 @@ import gameLogService from './service/gamelog.js'
this.$message('Request invite sent');
return args;
});
+ } else if (command === 'Invite') {
+ var L = API.parseLocation(this.lastLocation);
+ API.getCachedWorld({
+ worldId: L.worldId
+ }).then((args) => {
+ API.sendNotification({
+ receiverUserId: D.id,
+ type: 'invite',
+ message: 'This is a generated invite',
+ seen: false,
+ details: {
+ worldId: this.lastLocation,
+ worldName: args.ref.name
+ }
+ }).then((args) => {
+ this.$message('Invite sent');
+ return args;
+ });
+ });
} else if (command === 'Show Avatar Details') {
var { currentAvatarImageUrl } = D.ref;
var id = extractFileId(currentAvatarImageUrl);
diff --git a/html/src/index.pug b/html/src/index.pug
index 7f86dc47..0fd1fa2f 100644
--- a/html/src/index.pug
+++ b/html/src/index.pug
@@ -750,6 +750,8 @@ html
el-dropdown-item(icon="el-icon-edit" command="Edit Bio") Bio
el-dropdown-item(icon="el-icon-switch-button" command="Logout" divided) Logout
template(v-else)
+ template(v-if="lastLocation && isGameRunning")
+ el-dropdown-item(icon="el-icon-message" command="Invite") Invite
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