stuff
This commit is contained in:
parent
1d42c13b1f
commit
3378aab489
|
@ -2266,7 +2266,7 @@
|
||||||
let id = Node.prototype.isPrototypeOf(eleOrInfoOrId) ? BDFDB.GuildUtils.getId(eleOrInfoOrId) : (typeof eleOrInfoOrId == "object" ? eleOrInfoOrId.id : eleOrInfoOrId);
|
let id = Node.prototype.isPrototypeOf(eleOrInfoOrId) ? BDFDB.GuildUtils.getId(eleOrInfoOrId) : (typeof eleOrInfoOrId == "object" ? eleOrInfoOrId.id : eleOrInfoOrId);
|
||||||
let guild = LibraryModules.GuildStore.getGuild(id);
|
let guild = LibraryModules.GuildStore.getGuild(id);
|
||||||
if (guild) LibraryModules.ContextMenuUtils.openContextMenu(e, function (e) {
|
if (guild) LibraryModules.ContextMenuUtils.openContextMenu(e, function (e) {
|
||||||
return BDFDB.ReactUtils.createElement(BDFDB.ModuleUtils.findByName("GuildContextMenu"), Object.assign({}, e, {
|
return BDFDB.ReactUtils.createElement((BDFDB.ModuleUtils.findByName("GuildContextMenu", false) || {exports:{}}).exports.default, Object.assign({}, e, {
|
||||||
type: BDFDB.DiscordConstants.ContextMenuTypes.GUILD_ICON_BAR,
|
type: BDFDB.DiscordConstants.ContextMenuTypes.GUILD_ICON_BAR,
|
||||||
guild: guild,
|
guild: guild,
|
||||||
badge: LibraryModules.UnreadGuildUtils.getMentionCount(guild.id),
|
badge: LibraryModules.UnreadGuildUtils.getMentionCount(guild.id),
|
||||||
|
@ -2467,13 +2467,13 @@
|
||||||
let channel = LibraryModules.ChannelStore.getChannel(id);
|
let channel = LibraryModules.ChannelStore.getChannel(id);
|
||||||
if (channel) {
|
if (channel) {
|
||||||
if (channel.isMultiUserDM()) LibraryModules.ContextMenuUtils.openContextMenu(e, function (e) {
|
if (channel.isMultiUserDM()) LibraryModules.ContextMenuUtils.openContextMenu(e, function (e) {
|
||||||
return BDFDB.ReactUtils.createElement(BDFDB.ModuleUtils.findByName("GroupDMContextMenu"), Object.assign({}, e, {
|
return BDFDB.ReactUtils.createElement((BDFDB.ModuleUtils.findByName("GroupDMContextMenu", false) || {exports:{}}).exports.default, Object.assign({}, e, {
|
||||||
channel: channel,
|
channel: channel,
|
||||||
selected: channel.id == LibraryModules.LastChannelStore.getChannelId()
|
selected: channel.id == LibraryModules.LastChannelStore.getChannelId()
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
else LibraryModules.ContextMenuUtils.openContextMenu(e, function (e) {
|
else LibraryModules.ContextMenuUtils.openContextMenu(e, function (e) {
|
||||||
return BDFDB.ReactUtils.createElement(BDFDB.ModuleUtils.findByName("DMUserContextMenu"), Object.assign({}, e, {
|
return BDFDB.ReactUtils.createElement((BDFDB.ModuleUtils.findByName("DMUserContextMenu", false) || {exports:{}}).exports.default, Object.assign({}, e, {
|
||||||
user: LibraryModules.UserStore.getUser(channel.recipients[0]),
|
user: LibraryModules.UserStore.getUser(channel.recipients[0]),
|
||||||
channel: channel,
|
channel: channel,
|
||||||
selected: channel.id == LibraryModules.LastChannelStore.getChannelId()
|
selected: channel.id == LibraryModules.LastChannelStore.getChannelId()
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue