This commit is contained in:
Mirco Wittrien 2022-10-11 09:35:15 +02:00
parent d7d224957f
commit 561d54290e
2 changed files with 10 additions and 10 deletions

View File

@ -327,6 +327,7 @@
"GroupDMUserContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".GROUP_DM_USER_MENU"]},
"GuildContextMenu": {"strings": ["GUILD_ACTIONS_MENU_LABEL", "navId:\"guild", "GuildContextMenu"]},
"GuildChannelUserContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".GUILD_CHANNEL_USER_MENU"]},
"GuildsBar": {"strings": ["unreadMentionsIndicatorTop", "disableAppDownload", ".GUILD_MEMBER_VERIFICATION"]},
"GuildSidebar": {"strings": ["\"guildsnav\"", "unreadMentionsIndicatorBottom"]},
"LayerProvider": {"strings": ["layerContainerElement", "getContextValue"]},
"MemberListItem": {"protos": ["renderOwner", "renderDecorators", "renderPremium"]},
@ -340,6 +341,7 @@
"SearchResult": {"strings": [".onJump", "message:", "handleMessageClick"]},
"Shakeable": {"protos": ["shake", "getDefaultAnimProps", "stop"]},
"TransitionGroup": {"protos": ["performAppear", "performEnter", "performLeave"]},
"UnreadDMs": {"strings": ["getMutablePrivateChannels", "selectedVoiceGuildId", ".selectedVoiceChannelId"]},
"UseCopyIdItem": {"strings": ["\"devmode-copy-id\""]},
"UserGenericContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".USER_GENERIC_MENU"]},
"UsernameSection": {"strings": [".shouldCopyOnClick", ".userTagDiscriminatorNoNickname"]},

View File

@ -2,7 +2,7 @@
* @name FriendNotifications
* @author DevilBro
* @authorId 278543574059057154
* @version 1.8.3
* @version 1.8.4
* @description Shows a Notification when a Friend or a User, you choose to observe, changes their Status
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -14,10 +14,7 @@
module.exports = (_ => {
const changeLog = {
added: {
"Show Timestamp": "Added option to show the timestamp in the notification",
"Screensharing": "Added option to notify you when a user starts screensharing in one of your servers"
}
};
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
@ -237,10 +234,10 @@ module.exports = (_ => {
}
};
this.patchedModules = {
after: {
Guilds: "type"
}
this.modulePatches = {
after: [
"GuildsBar"
]
};
this.css = `
@ -728,7 +725,8 @@ module.exports = (_ => {
}
}
processGuilds (e) {
processGuildsBar (e) {
console.log(e);
if (!this.settings.general.addOnlineCount) return;
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "UnreadDMs"});
if (index > -1) children.splice(index, 0, BDFDB.ReactUtils.createElement(FriendOnlineCounterComponent, {