-
Notifications
You must be signed in to change notification settings - Fork 768
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
feat: Add user label to mention #10556
Conversation
Thanks for opening this pull request! Things that will help get your PR across the finish line:
|
This optional extra parameter allows defining a label for a user, much like a display name, along with the username which should be expected to be the unique identifier (while the label can be non-unique). It is a good idea because some integrations might want to supply this, and some might need a separate, unique identifier with which to easily identify the user being mentioned (like Nextcloud). Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de> Change-Id: Id2484d5dee155a7755e0cca55a97d7191ec83985
1c803d6
to
06b3fba
Compare
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.
Looks good, thank you. I have created SDK MR, once this patch is released in the new version. I will merge the SDK MR so it gets updated
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.
I noticed in mobile comment we don't use label
when available
comment.autoCompleteMention(item.username, item.profile, replacement) |
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de> Change-Id: I6bb645725e1db84a6d21ee8c99230f3a6905fe3c
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.
Thanks : )
Thanks a lot for your contribution, and congrats on your first pull request merged! Welcome aboard! 🎉🎉🎉 If you haven't decided on your next task yet, take a look at our easy-hacks. We're looking forward to your next pull request! :) |
Change-Id:
Id2484d5dee155a7755e0cca55a97d7191ec83985
Summary
In Nextcloud, we are working on improving our mention support, and it would be really nice to also be able to pass a display name (label) along with a username (unique identifier) and the profile link. Having this would allow us to determine the user quicker and easier on our side, and I don't see the harm in having it there for other integrations as well, should they want it.
This is a work-in-progress PR, and it's my first contribution to this repository, so please bear with me and provide any constructive feedback you may have :)
Checklist
make prettier-write
and formatted the code.make check
make run
and manually verified that everything looks okay