summaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2020-07-17 14:47:47 +0200
committerGitHub <noreply@github.com>2020-07-17 14:47:47 +0200
commit62ac0557d5378c0f388177848f41a528372c6e07 (patch)
tree1298a870375d3a59197f62c2a00c886627e1acb9 /src/components
parent4e0d60fceb4e6a3276775c96ef36cd9f9a84e6b4 (diff)
parent180569661e6ff78519e5c6db4a3d25d7356d4473 (diff)
Merge pull request #3901 from nextcloud/bugfix/3888/dont-trim-displayname-in-selection
Don't trimm displayname in selection
Diffstat (limited to 'src/components')
-rw-r--r--src/components/LeftSidebar/NewGroupConversation/SetContacts/ContactSelectionBubble/ContactSelectionBubble.vue9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/LeftSidebar/NewGroupConversation/SetContacts/ContactSelectionBubble/ContactSelectionBubble.vue b/src/components/LeftSidebar/NewGroupConversation/SetContacts/ContactSelectionBubble/ContactSelectionBubble.vue
index a9dcfb8ce..0f01f94a0 100644
--- a/src/components/LeftSidebar/NewGroupConversation/SetContacts/ContactSelectionBubble/ContactSelectionBubble.vue
+++ b/src/components/LeftSidebar/NewGroupConversation/SetContacts/ContactSelectionBubble/ContactSelectionBubble.vue
@@ -29,7 +29,7 @@
:disable-menu="true"
:disable-tooltip="true" />
<span class="contact-selection-bubble__username">
- {{ trimmedName }}
+ {{ displayName }}
</span>
<button
class="icon-close contact-selection-bubble__remove"
@@ -54,9 +54,10 @@ export default {
},
computed: {
- // First group of characrers before the space in the name the string
- trimmedName() {
- return this.participant.label.match(/^\S*/)[0]
+ displayName() {
+ // Used to be the group of characters before the first space in the name.
+ // But it causes weird scenarios in formal companies or when people have titles.
+ return this.participant.label
},
},