auto http/https avatarUrl

This commit is contained in:
simon3000 2019-11-30 07:08:17 +01:00
parent 1cf6d88460
commit 4b98c56965
No known key found for this signature in database
GPG Key ID: AF9E4E00993D5AD9

View File

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