diff --git a/src/components/dialogs/GroupDialog/GroupPostEditDialog.vue b/src/components/dialogs/GroupDialog/GroupPostEditDialog.vue
index 6e03faef..2cc6f990 100644
--- a/src/components/dialogs/GroupDialog/GroupPostEditDialog.vue
+++ b/src/components/dialogs/GroupDialog/GroupPostEditDialog.vue
@@ -184,7 +184,6 @@
message: 'Group post edited',
type: 'success'
});
- return args;
});
D.visible = false;
}
@@ -210,12 +209,11 @@
params.imageId = gallerySelectDialog.value.selectedFileId;
}
groupRequest.createGroupPost(params).then((args) => {
- handleGroupPost();
+ handleGroupPost(args);
ElMessage({
message: 'Group post created',
type: 'success'
});
- return args;
});
D.visible = false;
}
diff --git a/src/components/dialogs/UserDialog/UserActionDropdown.vue b/src/components/dialogs/UserDialog/UserActionDropdown.vue
index 7d4b5550..f71bccf1 100644
--- a/src/components/dialogs/UserDialog/UserActionDropdown.vue
+++ b/src/components/dialogs/UserDialog/UserActionDropdown.vue
@@ -90,6 +90,12 @@
>{{ t('dialog.user.actions.invite_with_message') }}
+ {{ t('dialog.user.actions.send_boop') }}
{{
@@ -108,12 +114,6 @@
{{
t('dialog.user.actions.send_friend_request')
}}
- {{ t('dialog.user.actions.send_boop') }}
{{
t('dialog.user.actions.invite_to_group')
}}
diff --git a/src/plugin/sentry.js b/src/plugin/sentry.js
index 521b027f..35224402 100644
--- a/src/plugin/sentry.js
+++ b/src/plugin/sentry.js
@@ -44,7 +44,8 @@ export async function initSentry(app) {
beforeSend(event) {
if (
event.request?.status !== 404 &&
- event.request?.status !== 403
+ event.request?.status !== 403 &&
+ event.request?.status !== -1
) {
return event;
}
diff --git a/src/shared/utils/common.js b/src/shared/utils/common.js
index 7bff391d..a225ffc2 100644
--- a/src/shared/utils/common.js
+++ b/src/shared/utils/common.js
@@ -431,6 +431,9 @@ async function getBundleDateSize(ref) {
const bundleJson = [];
for (let i = ref.unityPackages.length - 1; i > -1; i--) {
const unityPackage = ref.unityPackages[i];
+ if (!unityPackage) {
+ continue;
+ }
if (
unityPackage.variant &&
unityPackage.variant !== 'standard' &&
diff --git a/src/stores/auth.js b/src/stores/auth.js
index 7bb40e43..4fa95f36 100644
--- a/src/stores/auth.js
+++ b/src/stores/auth.js
@@ -119,15 +119,24 @@ export const useAuthStore = defineStore('Auth', () => {
loginForm.value.lastUserLoggedIn = lastUserLoggedIn;
try {
const credentials = JSON.parse(savedCredentials || '{}');
- // fix goofy typo
let edited = false;
for (const userId in credentials) {
+ // fix goofy typo
if (credentials[userId].loginParmas) {
credentials[userId].loginParams =
credentials[userId].loginParmas;
delete credentials[userId].loginParmas;
edited = true;
}
+ // fix missing fields
+ if (!credentials[userId].loginParams.endpoint) {
+ credentials[userId].loginParams.endpoint = '';
+ edited = true;
+ }
+ if (!credentials[userId].loginParams.websocket) {
+ credentials[userId].loginParams.websocket = '';
+ edited = true;
+ }
}
if (edited) {
await configRepository.setString(
diff --git a/src/stores/gameLog.js b/src/stores/gameLog.js
index 4011c2b9..23026ea0 100644
--- a/src/stores/gameLog.js
+++ b/src/stores/gameLog.js
@@ -597,7 +597,10 @@ export const useGameLogStore = defineStore('GameLog', () => {
console.error('Missing userId:', gameLog.displayName);
} else if (userId === userStore.currentUser.id) {
// skip
- } else if (friendStore.friends.has(userId)) {
+ } else if (
+ friendStore.friends.has(userId) &&
+ typeof ref !== 'undefined'
+ ) {
locationStore.lastLocation.friendList.set(userId, userMap);
if (
ref.location !== locationStore.lastLocation.location &&
diff --git a/src/stores/instance.js b/src/stores/instance.js
index ffac1f69..2600d06e 100644
--- a/src/stores/instance.js
+++ b/src/stores/instance.js
@@ -364,7 +364,7 @@ export const useInstanceStore = defineStore('Instance', () => {
}
if (
userStore.userDialog.visible &&
- userStore.userDialog.ref.$location.tag === ref.id
+ userStore.userDialog.ref?.$location.tag === ref.id
) {
userStore.applyUserDialogLocation();
}
diff --git a/src/stores/user.js b/src/stores/user.js
index ff60c807..7a34cb62 100644
--- a/src/stores/user.js
+++ b/src/stores/user.js
@@ -561,7 +561,7 @@ export const useUserStore = defineStore('User', () => {
}
}
for (const prop in json) {
- if (typeof ref[prop] !== 'undefined') {
+ if (typeof json[prop] !== 'undefined') {
ref[prop] = json[prop];
}
}
@@ -1732,7 +1732,7 @@ export const useUserStore = defineStore('User', () => {
}
}
for (const prop in json) {
- if (typeof ref[prop] !== 'undefined') {
+ if (typeof json[prop] !== 'undefined') {
ref[prop] = json[prop];
}
}
diff --git a/src/views/Notifications/Notification.vue b/src/views/Notifications/Notification.vue
index a8d963eb..68d3a740 100644
--- a/src/views/Notifications/Notification.vue
+++ b/src/views/Notifications/Notification.vue
@@ -127,7 +127,7 @@
![]()