summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco <marcoambrosini@icloud.com>2023-03-28 09:22:00 +0100
committerJoas Schilling <coding@schilljs.com>2023-03-31 14:07:35 +0200
commitbf4f1723f1b2b3651cc06ee5780426d092191a49 (patch)
tree4653809214279194191aa1f771c42ab1aea15f60
parent0fa91673a28ef0e6e55d20b01c1d4d7d85190593 (diff)
Use avatar instead of picture in non user-facing names
Signed-off-by: Marco <marcoambrosini@icloud.com>
-rw-r--r--src/components/ConversationSettings/ConversationAvatarEditor.vue4
-rw-r--r--src/services/conversationsService.js8
-rw-r--r--src/store/conversationsStore.js12
3 files changed, 12 insertions, 12 deletions
diff --git a/src/components/ConversationSettings/ConversationAvatarEditor.vue b/src/components/ConversationSettings/ConversationAvatarEditor.vue
index e857d9750..66b222995 100644
--- a/src/components/ConversationSettings/ConversationAvatarEditor.vue
+++ b/src/components/ConversationSettings/ConversationAvatarEditor.vue
@@ -221,7 +221,7 @@ export default {
formData.append('file', blob)
try {
- await this.$store.dispatch('setConversationPictureAction', {
+ await this.$store.dispatch('setConversationAvatarAction', {
token: this.conversation.token,
file: formData,
})
@@ -236,7 +236,7 @@ export default {
async removeAvatar() {
this.loading = true
try {
- await this.$store.dispatch('deleteConversationPictureAction', {
+ await this.$store.dispatch('deleteConversationAvatarAction', {
token: this.conversation.token,
})
this.loading = false
diff --git a/src/services/conversationsService.js b/src/services/conversationsService.js
index 1ee92a722..12c754aaf 100644
--- a/src/services/conversationsService.js
+++ b/src/services/conversationsService.js
@@ -409,11 +409,11 @@ const validatePassword = async (password) => {
})
}
-const setConversationPicture = async function(token, file) {
+const setConversationAvatar = async function(token, file) {
return axios.post(generateOcsUrl('apps/spreed/api/v1/room/{token}/avatar', { token }), file,)
}
-const deleteConversationPicture = async function(token) {
+const deleteConversationAvatar = async function(token) {
return axios.delete(generateOcsUrl('apps/spreed/api/v1/room/{token}/avatar', { token }))
}
@@ -445,6 +445,6 @@ export {
setCallPermissions,
setMessageExpiration,
validatePassword,
- setConversationPicture,
- deleteConversationPicture,
+ setConversationAvatar,
+ deleteConversationAvatar,
}
diff --git a/src/store/conversationsStore.js b/src/store/conversationsStore.js
index 6acabb603..afb0eed61 100644
--- a/src/store/conversationsStore.js
+++ b/src/store/conversationsStore.js
@@ -52,8 +52,8 @@ import {
setCallPermissions,
setMessageExpiration,
setConversationPassword,
- setConversationPicture,
- deleteConversationPicture,
+ setConversationAvatar,
+ deleteConversationAvatar,
} from '../services/conversationsService.js'
import {
startCallRecording,
@@ -713,9 +713,9 @@ const actions = {
context.commit('setCallRecording', { token, callRecording: CALL.RECORDING.OFF })
},
- async setConversationPictureAction(context, { token, file }) {
+ async setConversationAvatarAction(context, { token, file }) {
try {
- const response = await setConversationPicture(token, file)
+ const response = await setConversationAvatar(token, file)
const conversation = response.data.ocs.data
context.commit('addConversation', conversation)
showSuccess(t('spreed', 'You\'ve set the conversation picture.'))
@@ -726,9 +726,9 @@ const actions = {
},
- async deleteConversationPictureAction(context, { token, file }) {
+ async deleteConversationAvatarAction(context, { token, file }) {
try {
- const response = await deleteConversationPicture(token, file)
+ const response = await deleteConversationAvatar(token, file)
const conversation = response.data.ocs.data
context.commit('addConversation', conversation)
showSuccess(t('spreed', 'You\'ve deleted the conversation picture.'))