mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-30 20:23:46 +02:00
Fixes
This commit is contained in:
@@ -1978,7 +1978,8 @@ speechSynthesis.getVoices();
|
|||||||
/*
|
/*
|
||||||
params: {
|
params: {
|
||||||
worldId: string,
|
worldId: string,
|
||||||
instanceId: string
|
instanceId: string,
|
||||||
|
shortName: string
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
API.getInstanceShortName = function (instance) {
|
API.getInstanceShortName = function (instance) {
|
||||||
@@ -2024,15 +2025,17 @@ speechSynthesis.getVoices();
|
|||||||
/*
|
/*
|
||||||
params: {
|
params: {
|
||||||
worldId: string,
|
worldId: string,
|
||||||
instanceId: string
|
instanceId: string,
|
||||||
|
shortName: string
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
API.selfInvite = function (params) {
|
API.selfInvite = function (instance) {
|
||||||
if (params.shortName === '') {
|
var params = {};
|
||||||
delete params.shortName;
|
if (instance.shortName) {
|
||||||
|
params.shortName = instance.shortName;
|
||||||
}
|
}
|
||||||
return this.call(
|
return this.call(
|
||||||
`invite/myself/to/${params.worldId}:${params.instanceId}`,
|
`invite/myself/to/${instance.worldId}:${instance.instanceId}`,
|
||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
params
|
params
|
||||||
@@ -2041,6 +2044,7 @@ speechSynthesis.getVoices();
|
|||||||
.then((json) => {
|
.then((json) => {
|
||||||
var args = {
|
var args = {
|
||||||
json,
|
json,
|
||||||
|
instance,
|
||||||
params
|
params
|
||||||
};
|
};
|
||||||
return args;
|
return args;
|
||||||
@@ -4403,7 +4407,7 @@ speechSynthesis.getVoices();
|
|||||||
configRepository.setString('VRCX_lastVRCXVersion', this.appVersion);
|
configRepository.setString('VRCX_lastVRCXVersion', this.appVersion);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (lastVersion < this.appVersion) {
|
if (lastVersion !== this.appVersion) {
|
||||||
configRepository.setString('VRCX_lastVRCXVersion', this.appVersion);
|
configRepository.setString('VRCX_lastVRCXVersion', this.appVersion);
|
||||||
if (configRepository.getString('VRCX_branch') === 'Stable') {
|
if (configRepository.getString('VRCX_branch') === 'Stable') {
|
||||||
this.openChangeLog();
|
this.openChangeLog();
|
||||||
@@ -9527,7 +9531,7 @@ speechSynthesis.getVoices();
|
|||||||
shortName,
|
shortName,
|
||||||
senderId
|
senderId
|
||||||
);
|
);
|
||||||
this.failedGetRequests.delete(
|
API.failedGetRequests.delete(
|
||||||
`instances/s/${shortName}`
|
`instances/s/${shortName}`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1518,7 +1518,7 @@ class Database {
|
|||||||
version: dbRow[13]
|
version: dbRow[13]
|
||||||
};
|
};
|
||||||
data.unshift(row);
|
data.unshift(row);
|
||||||
}, `SELECT * FROM ${Database.userPrefix}_avatar_history INNER JOIN cache_avatar ON cache_avatar.id = ${Database.userPrefix}_avatar_history.avatar_id LIMIT 100`);
|
}, `SELECT * FROM ${Database.userPrefix}_avatar_history INNER JOIN cache_avatar ON cache_avatar.id = ${Database.userPrefix}_avatar_history.avatar_id ORDER BY ${Database.userPrefix}_avatar_history.created_at DESC LIMIT 100`);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user