diff --git a/frontend/src/components/ChatRenderer/index.vue b/frontend/src/components/ChatRenderer/index.vue index 35bc655..a17bae4 100644 --- a/frontend/src/components/ChatRenderer/index.vue +++ b/frontend/src/components/ChatRenderer/index.vue @@ -112,7 +112,10 @@ export default { } }, methods: { - addMessage(message) { + addMessage({ avatarUrl, ...message }) { + if (avatarUrl) { + message.avatarUrl = avatarUrl.replace('http:', '').replace('https:', '') + } this.addMessages([message]) }, addMessages(messages) {