Skip to content

Commit

Permalink
fix: also try label for mobile comments
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
Change-Id: I6bb645725e1db84a6d21ee8c99230f3a6905fe3c
  • Loading branch information
elzody authored and Rash419 committed Dec 3, 2024
1 parent 991612e commit 298b01a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions browser/src/canvas/sections/CommentListSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,9 @@ export class CommentSection extends app.definitions.canvasSectionObject {
else if (eventType === 'select' || eventType === 'activate') {
const item = mention.getMentionUserData(index);
const replacement = '@' + mention.getPartialMention();
if (item.username !== '' && item.profile !== '')
comment.autoCompleteMention(item.username, item.profile, replacement)
const uid = item.label ?? item.username
if (uid !== '' && item.profile !== '')
comment.autoCompleteMention(uid, item.profile, replacement)
mention.closeMentionPopup(false);
}
}.bind(this);
Expand Down

0 comments on commit 298b01a

Please sign in to comment.