-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: always show email address for suggestions from address collector #10683
fix: always show email address for suggestions from address collector #10683
Conversation
/backport to stable4.2 |
/backport to stable4.1 |
/backport to stable3.7 |
@@ -37,9 +37,13 @@ public function findMatches(string $userId, string $term): array { | |||
|
|||
// Convert collected addresses into same format as CI creates | |||
$recipientsFromCollector = array_map(static function (CollectedAddress $address) { | |||
$label = ($address->getDisplayName()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it make sense to explicitly check for null or an empty string? what makes a truthy displayname?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, now it's really matching the implemention in contacts integration ;)
ace208e
to
e77b98b
Compare
Doesn't that mean we'll also send the email to a recipient |
Indeed, that's not ideal. I initially did it in the frontend until I learned that we are using this format for the contacts' integration already. Let me move it back to the frontend and overload the options template for nc/vue select. |
Good that we took a second look. It's already there, just using the wrong prop, apparently. mail/src/components/Composer.vue Lines 85 to 90 in 4b1b6ca
subtitle => subname |
Signed-off-by: Daniel Kesselberg <[email protected]>
e77b98b
to
0b50b3a
Compare
I've updated the patch to show the email address as subname again if label != email.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! I like the sublinename approach
It's fine to do the follow up. This can be put into a ticket.
Have
oc_mail_coll_addresses
with:B
A