auto http/https avatarUrl

pull/13/head
simon3000 5 years ago
parent 1cf6d88460
commit 4b98c56965
No known key found for this signature in database
GPG Key ID: AF9E4E00993D5AD9

@ -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) {

Loading…
Cancel
Save