diff --git a/src/app.js b/src/app.js index acb81168..33db937b 100644 --- a/src/app.js +++ b/src/app.js @@ -336,6 +336,7 @@ console.log(`isLinux: ${LINUX}`); provide() { return { API, + friends: this.friends, showUserDialog: this.showUserDialog, adjustDialogZ: this.adjustDialogZ, getWorldName: this.getWorldName, @@ -13737,7 +13738,7 @@ console.log(`isLinux: ${LINUX}`); lastLocationDestination: this.lastLocationDestination, isGameRunning: this.isGameRunning, inviteResponseMessageTable: this.inviteResponseMessageTable, - updateImage: this.updateImage, + uploadImage: this.uploadImage, checkCanInvite: this.checkCanInvite, inviteRequestResponseMessageTable: this.inviteRequestResponseMessageTable diff --git a/src/classes/websocket.js b/src/classes/websocket.js index c1d91e27..70add78f 100644 --- a/src/classes/websocket.js +++ b/src/classes/websocket.js @@ -557,6 +557,8 @@ export default class extends baseClass { // on avatar upload } else if (contentType === 'avatargallery') { // on avatar gallery image upload + } else if (contentType === 'invitePhoto') { + // on uploading invite photo } else { console.log( 'Unknown content-refresh type', diff --git a/src/components/dialogs/NewInstanceDialog.vue b/src/components/dialogs/NewInstanceDialog.vue index 8613f2c4..01b3f51b 100644 --- a/src/components/dialogs/NewInstanceDialog.vue +++ b/src/components/dialogs/NewInstanceDialog.vue @@ -506,7 +506,7 @@ export default { name: 'NewInstanceDialog', components: { InviteDialog }, - inject: ['API', 'userImage', 'userStatusClass', 'showLaunchDialog', 'adjustDialogZ'], + inject: ['API', 'friends', 'userImage', 'userStatusClass', 'showLaunchDialog', 'adjustDialogZ'], props: { vipFriends: { type: Array, diff --git a/src/components/dialogs/UserDialog/UserDialog.vue b/src/components/dialogs/UserDialog/UserDialog.vue index 10c7d186..67c24d87 100644 --- a/src/components/dialogs/UserDialog/UserDialog.vue +++ b/src/components/dialogs/UserDialog/UserDialog.vue @@ -939,9 +939,10 @@
{{ t('dialog.user.info.last_activity') }} - {{ + {{ timeToText(Date.now() - Date.parse(userDialog.ref.last_activity)) }} + -