diff options
author | call-me-matt <nextcloud@matthiasheinisch.de> | 2023-01-13 09:15:54 +0100 |
---|---|---|
committer | call-me-matt <nextcloud@matthiasheinisch.de> | 2023-01-13 09:25:50 +0100 |
commit | 720f81d231e71d79a6752899c73d31ce39aac9f7 (patch) | |
tree | 7ce0d8a8502030fc56a56c79e8ffa8595b574393 /src | |
parent | 684132ca6c9771b7cdaac78617e653e5ff4652bc (diff) |
allow social avatars from telegram, fixes #2393
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ContactDetails/ContactDetailsAvatar.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ContactDetails/ContactDetailsAvatar.vue b/src/components/ContactDetails/ContactDetailsAvatar.vue index 3c52182c..f7836401 100644 --- a/src/components/ContactDetails/ContactDetailsAvatar.vue +++ b/src/components/ContactDetails/ContactDetailsAvatar.vue @@ -154,8 +154,11 @@ export default { supportedSocial() { const emails = this.contact.vCard.getAllProperties('email') // get social networks set for the current contact - const available = this.contact.vCard.getAllProperties('x-socialprofile') + const availableSocial = this.contact.vCard.getAllProperties('x-socialprofile') .map(a => a.jCal[1].type.toString().toLowerCase()) + const availableMessenger = this.contact.vCard.getAllProperties('impp') + .map(a => a.jCal[1].type.toString().toLowerCase()) + const available = [].concat(availableSocial, availableMessenger) // get list of social networks that allow for avatar download const supported = supportedNetworks.map(v => v.toLowerCase()) if (emails.length) { |