From 6158665a33e4edbcf83006e5c1fa2dd7453f09da Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 12 Oct 2020 17:48:36 +0200 Subject: use prefered username as fallback if no account name is provided instead of falling back directly to the full account id (@userid@example.com) use the prefered username if available Signed-off-by: Robin Appelman --- src/components/ProfileInfo.vue | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/components/ProfileInfo.vue b/src/components/ProfileInfo.vue index 56ce0aa2..a5911fa7 100644 --- a/src/components/ProfileInfo.vue +++ b/src/components/ProfileInfo.vue @@ -137,6 +137,9 @@ export default { if (typeof this.accountInfo.name !== 'undefined' && this.accountInfo.name !== '') { return this.accountInfo.name } + if (typeof this.accountInfo.preferredUsername !== 'undefined' && this.accountInfo.preferredUsername !== '') { + return this.accountInfo.preferredUsername + } return this.account }, accountInfo: function() { -- cgit v1.2.3