mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-07 12:03:47 -05:00
Fix Part of KeywordNotify
This commit is contained in:
parent
22c648a65a
commit
6c138e208d
1 changed files with 1 additions and 10 deletions
|
@ -11,7 +11,6 @@ import { definePluginSettings } from "@api/Settings";
|
||||||
import { classNameFactory } from "@api/Styles";
|
import { classNameFactory } from "@api/Styles";
|
||||||
import { Flex } from "@components/Flex";
|
import { Flex } from "@components/Flex";
|
||||||
import { DeleteIcon } from "@components/Icons";
|
import { DeleteIcon } from "@components/Icons";
|
||||||
import { onceDefined } from "@shared/onceDefined";
|
|
||||||
import { EquicordDevs } from "@utils/constants";
|
import { EquicordDevs } from "@utils/constants";
|
||||||
import { Margins } from "@utils/margins";
|
import { Margins } from "@utils/margins";
|
||||||
import { classes } from "@utils/misc";
|
import { classes } from "@utils/misc";
|
||||||
|
@ -39,15 +38,7 @@ const KEYWORD_ENTRIES_KEY = "KeywordNotify_keywordEntries";
|
||||||
const KEYWORD_LOG_KEY = "KeywordNotify_log";
|
const KEYWORD_LOG_KEY = "KeywordNotify_log";
|
||||||
|
|
||||||
const cl = classNameFactory("vc-keywordnotify-");
|
const cl = classNameFactory("vc-keywordnotify-");
|
||||||
|
const MenuHeader = findByCodeLazy("getUnseenInviteCount())");
|
||||||
let MenuHeader;
|
|
||||||
onceDefined(window, "GLOBAL_ENV", v => {
|
|
||||||
if (v.RELEASE_CHANNEL === "canary") {
|
|
||||||
MenuHeader = findByCodeLazy(".getOverdueMessageReminderCount())");
|
|
||||||
} else {
|
|
||||||
MenuHeader = findByCodeLazy(".getMessageReminders()).length");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
async function addKeywordEntry(forceUpdate: () => void) {
|
async function addKeywordEntry(forceUpdate: () => void) {
|
||||||
keywordEntries.push({ regex: "", listIds: [], listType: ListType.BlackList, ignoreCase: false });
|
keywordEntries.push({ regex: "", listIds: [], listType: ListType.BlackList, ignoreCase: false });
|
||||||
|
|
Loading…
Reference in a new issue