-
Notifications
You must be signed in to change notification settings - Fork 87
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:the user name in inline comments section is followed by some internal code which should be omitted in UI [SDESK-6685] #4161
Changes from 1 commit
2db711d
47bef32
32f506f
ae93963
4ad28aa
2301def
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ const mentionRegexp = /@\[([^\]]+)\]\((desk|user):([^\)]+)\)/g; | |
* @description Displays a text containing mentions. | ||
*/ | ||
export const TextWithMentions: React.StatelessComponent<any> = ({children, ...props}) => { | ||
const msg = children; | ||
const msg = props.data ? props.data : children; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you add TypeScript types to Given |
||
const n = msg.length; | ||
|
||
const r = []; // array of components to render | ||
|
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.
Can we modify the back-end so
display_name
defaults to username if not provided. Isn't it already like that @petrjasek ?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.
it should be like that already
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.
great, then you can remove the fallback @devketanpro