aboutsummaryrefslogtreecommitdiff
path: root/src/webpack
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpack')
-rw-r--r--src/webpack/common.tsx5
-rw-r--r--src/webpack/patchWebpack.ts1
2 files changed, 5 insertions, 1 deletions
diff --git a/src/webpack/common.tsx b/src/webpack/common.tsx
index 56846c2..0a5fd7d 100644
--- a/src/webpack/common.tsx
+++ b/src/webpack/common.tsx
@@ -52,7 +52,10 @@ export let UserStore: Stores.UserStore;
export let SelectedChannelStore: Stores.SelectedChannelStore;
export let SelectedGuildStore: any;
export let ChannelStore: Stores.ChannelStore;
-export let RelationshipStore: Stores.RelationshipStore;
+export let RelationshipStore: Stores.RelationshipStore & {
+ /** Get the date (as a string) that the relationship was created */
+ getSince(userId: string): string;
+};
export const Forms = {} as {
FormTitle: Components.FormTitle;
diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts
index 273a062..8f11b63 100644
--- a/src/webpack/patchWebpack.ts
+++ b/src/webpack/patchWebpack.ts
@@ -137,6 +137,7 @@ function patchPush() {
// @ts-ignore we change all patch.replacement to array in plugins/index
for (const replacement of patch.replacement) {
+ if (replacement.predicate && !replacement.predicate()) continue;
const lastMod = mod;
const lastCode = code;