aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-04-13 19:15:36 +0200
committerVendicated <vendicated@riseup.net>2023-04-13 19:15:36 +0200
commitc6f0d0763c1c1866aab55e32c4d1a1b8863c6b11 (patch)
tree0a372a5cc3019f0a12f540cde988619cb2ecc2a4 /src
parent3bd3012aa92cc760581a34b4f454e3fd8c379fa0 (diff)
downloadVencord-c6f0d0763c1c1866aab55e32c4d1a1b8863c6b11.tar.gz
Vencord-c6f0d0763c1c1866aab55e32c4d1a1b8863c6b11.tar.bz2
Vencord-c6f0d0763c1c1866aab55e32c4d1a1b8863c6b11.zip
Remove noisy notifications from notification log
Diffstat (limited to 'src')
-rw-r--r--src/plugins/devCompanion.dev.tsx3
-rw-r--r--src/utils/settingsSync.ts15
2 files changed, 12 insertions, 6 deletions
diff --git a/src/plugins/devCompanion.dev.tsx b/src/plugins/devCompanion.dev.tsx
index e9b7394..67388c8 100644
--- a/src/plugins/devCompanion.dev.tsx
+++ b/src/plugins/devCompanion.dev.tsx
@@ -102,7 +102,8 @@ function initWs(isManual = false) {
(settings.store.notifyOnAutoConnect || isManual) && showNotification({
title: "Dev Companion Connected",
- body: "Connected to WebSocket"
+ body: "Connected to WebSocket",
+ noPersist: true
});
});
diff --git a/src/utils/settingsSync.ts b/src/utils/settingsSync.ts
index 61fd37e..d1348e1 100644
--- a/src/utils/settingsSync.ts
+++ b/src/utils/settingsSync.ts
@@ -152,7 +152,8 @@ export async function putCloudSettings() {
showNotification({
title: "Cloud Settings",
body: "Synchronized your settings to the cloud!",
- color: "var(--green-360)"
+ color: "var(--green-360)",
+ noPersist: true
});
} catch (e: any) {
cloudSettingsLogger.error("Failed to sync up", e);
@@ -180,7 +181,8 @@ export async function getCloudSettings(shouldNotify = true, force = false) {
if (shouldNotify)
showNotification({
title: "Cloud Settings",
- body: "There are no settings in the cloud."
+ body: "There are no settings in the cloud.",
+ noPersist: true
});
return false;
}
@@ -190,7 +192,8 @@ export async function getCloudSettings(shouldNotify = true, force = false) {
if (shouldNotify)
showNotification({
title: "Cloud Settings",
- body: "Your settings are up to date."
+ body: "Your settings are up to date.",
+ noPersist: true
});
return false;
}
@@ -213,7 +216,8 @@ export async function getCloudSettings(shouldNotify = true, force = false) {
if (shouldNotify)
showNotification({
title: "Cloud Settings",
- body: "Your local settings are newer than the cloud ones."
+ body: "Your local settings are newer than the cloud ones.",
+ noPersist: true,
});
return;
}
@@ -233,7 +237,8 @@ export async function getCloudSettings(shouldNotify = true, force = false) {
title: "Cloud Settings",
body: "Your settings have been updated! Click here to restart to fully apply changes!",
color: "var(--green-360)",
- onClick: () => window.DiscordNative.app.relaunch()
+ onClick: () => window.DiscordNative.app.relaunch(),
+ noPersist: true
});
return true;