mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Fixes and changes
This commit is contained in:
+45
-37
@@ -740,26 +740,16 @@ speechSynthesis.getVoices();
|
|||||||
L.worldId === '') {
|
L.worldId === '') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
API.getCachedWorld({
|
if (API.currentUser.status === 'busy') {
|
||||||
worldId: L.worldId
|
this.$message({
|
||||||
}).then((args) => {
|
message: 'You can\'t invite yourself in \'Do Not Disturb\' mode',
|
||||||
if (API.currentUser.status === 'busy') {
|
|
||||||
this.$message({
|
|
||||||
message: 'You can\'t invite yourself in \'Do Not Disturb\' mode',
|
|
||||||
type: 'error'
|
type: 'error'
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
API.sendInvite({
|
|
||||||
instanceId: L.tag,
|
|
||||||
worldId: L.tag,
|
|
||||||
worldName: args.ref.name
|
|
||||||
}, API.currentUser.id).finally(() => {
|
|
||||||
this.$message({
|
|
||||||
message: 'Invite sent to yourself',
|
|
||||||
type: 'success'
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
API.selfInvite({
|
||||||
|
instanceId: L.instanceId,
|
||||||
|
worldId: L.worldId
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1193,6 +1183,9 @@ speechSynthesis.getVoices();
|
|||||||
json.statusDescription = API.currentUser.statusDescription;
|
json.statusDescription = API.currentUser.statusDescription;
|
||||||
json.state = API.currentUser.state;
|
json.state = API.currentUser.state;
|
||||||
json.last_login = API.currentUser.last_login;
|
json.last_login = API.currentUser.last_login;
|
||||||
|
if ((typeof json.location !== 'undefined') && (json.location === 'offline')) {
|
||||||
|
json.location = '';
|
||||||
|
}
|
||||||
if ($app.lastLocation.location) {
|
if ($app.lastLocation.location) {
|
||||||
json.location = $app.lastLocation.location;
|
json.location = $app.lastLocation.location;
|
||||||
json.$location_at = $app.lastLocation.date;
|
json.$location_at = $app.lastLocation.date;
|
||||||
@@ -1638,6 +1631,24 @@ speechSynthesis.getVoices();
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
params: {
|
||||||
|
worldId: string,
|
||||||
|
instanceId: string
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
API.selfInvite = function (params) {
|
||||||
|
return this.call(`instances/${params.worldId}:${params.instanceId}/invite`, {
|
||||||
|
method: 'POST'
|
||||||
|
}).then((json) => {
|
||||||
|
var args = {
|
||||||
|
json,
|
||||||
|
params
|
||||||
|
};
|
||||||
|
return args;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
API.$on('INSTANCE', function (args) {
|
API.$on('INSTANCE', function (args) {
|
||||||
var { json } = args;
|
var { json } = args;
|
||||||
var D = $app.userDialog;
|
var D = $app.userDialog;
|
||||||
@@ -3294,6 +3305,14 @@ speechSynthesis.getVoices();
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'hide-notification':
|
||||||
|
this.$emit('NOTIFICATION:SEE', {
|
||||||
|
params: {
|
||||||
|
notificationId: content
|
||||||
|
}
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
case 'friend-add':
|
case 'friend-add':
|
||||||
this.$emit('USER', {
|
this.$emit('USER', {
|
||||||
json: content.user,
|
json: content.user,
|
||||||
@@ -9812,27 +9831,16 @@ speechSynthesis.getVoices();
|
|||||||
L.worldId === '') {
|
L.worldId === '') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
API.getCachedWorld({
|
if (API.currentUser.status === 'busy') {
|
||||||
worldId: L.worldId
|
this.$message({
|
||||||
}).then((args) => {
|
message: 'You can\'t invite yourself in \'Do Not Disturb\' mode',
|
||||||
if (API.currentUser.status === 'busy') {
|
|
||||||
this.$message({
|
|
||||||
message: 'You can\'t invite yourself in \'Do Not Disturb\' mode',
|
|
||||||
type: 'error'
|
type: 'error'
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
API.sendInvite({
|
|
||||||
instanceId: L.tag,
|
|
||||||
worldId: L.tag,
|
|
||||||
worldName: args.ref.name
|
|
||||||
}, API.currentUser.id).finally(() => {
|
|
||||||
this.newInstanceDialog.visible = false;
|
|
||||||
this.$message({
|
|
||||||
message: 'Invite sent to yourself',
|
|
||||||
type: 'success'
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
API.selfInvite({
|
||||||
|
instanceId: L.instanceId,
|
||||||
|
worldId: L.worldId
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -298,11 +298,13 @@ img.friends-list-avatar {
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.x-friend-item > .avatar.offline > img {
|
.x-friend-item > .avatar.offline > img,
|
||||||
|
.x-friend-item > .avatar.active > img {
|
||||||
filter: grayscale(1);
|
filter: grayscale(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.x-friend-item:hover > .avatar.offline > img {
|
.x-friend-item:hover > .avatar.offline > img,
|
||||||
|
.x-friend-item:hover > .avatar.active > img {
|
||||||
filter: none;
|
filter: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user