File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,12 @@ export default {
121121 // do it or not based on the next element instead of always
122122 // adding it.
123123 // FIXME user names can contain spaces, in that case they need to be wrapped @"user name" [a-zA-Z0-9\ _\.@\-']+
124- const mentionValue = mention .firstElementChild .attributes [' data-mention-id' ].value
124+ let mentionValue
125+ if (mention .attributes [' data-at-embedded' ].value === ' true' ) {
126+ mentionValue = mention .parentNode .parentNode .querySelector (' .user-bubble__wrapper' ).attributes [' data-mention-id' ].value
127+ } else {
128+ mentionValue = mention .firstChild .attributes [' data-mention-id' ].value
129+ }
125130 if (mentionValue .indexOf (' ' ) !== - 1 ) {
126131 mention .replaceWith (' @"' + mentionValue + ' " ' )
127132 } else {
You can’t perform that action at this time.
0 commit comments