Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2022-11-06 13:32:36 +01:00
parent 21fe44e3b9
commit 4e2a05e276
1 changed files with 2 additions and 1 deletions

View File

@ -7909,11 +7909,12 @@ module.exports = (_ => {
let guildId = this.props.guildId || channel && channel.guild_id;
let mention = BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Clickable, {
className: this.props.className,
onContextMenu: event => BDFDB.UserUtils.openMenu(user, guildId, event),
onContextMenu: event => BDFDB.UserUtils.openMenu(user, guildId, channel.id, event),
children: "@" + BDFDB.LibraryModules.UserNameUtils.getName(guildId, this.props.channelId, user)
});
return this.props.inlinePreview ? mention : BDFDB.ReactUtils.createElement(Internal.LibraryComponents.UserPopoutContainer, Object.assign({}, this.props, {
position: Internal.LibraryComponents.PopoutContainer.Positions.RIGHT,
align: Internal.LibraryComponents.PopoutContainer.Align.BOTTOM,
children: mention
}));
}