chore: generate
This commit is contained in:
@@ -658,10 +658,7 @@ function createGlobalSync() {
|
||||
.then((x) => x.data)
|
||||
.catch(() => undefined)
|
||||
if (!health?.healthy) {
|
||||
setGlobalStore(
|
||||
"error",
|
||||
new Error(language.t("error.globalSync.connectFailed", { url: globalSDK.url })),
|
||||
)
|
||||
setGlobalStore("error", new Error(language.t("error.globalSync.connectFailed", { url: globalSDK.url })))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,11 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
|
||||
|
||||
const href = `/${base64Encode(directory)}/session/${sessionID}`
|
||||
if (settings.notifications.agent()) {
|
||||
void platform.notify(language.t("notification.session.responseReady.title"), session?.title ?? sessionID, href)
|
||||
void platform.notify(
|
||||
language.t("notification.session.responseReady.title"),
|
||||
session?.title ?? sessionID,
|
||||
href,
|
||||
)
|
||||
}
|
||||
break
|
||||
}
|
||||
@@ -117,7 +121,8 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
|
||||
error,
|
||||
})
|
||||
const description =
|
||||
session?.title ?? (typeof error === "string" ? error : language.t("notification.session.error.fallbackDescription"))
|
||||
session?.title ??
|
||||
(typeof error === "string" ? error : language.t("notification.session.error.fallbackDescription"))
|
||||
const href = sessionID ? `/${base64Encode(directory)}/session/${sessionID}` : `/${base64Encode(directory)}`
|
||||
if (settings.notifications.errors()) {
|
||||
void platform.notify(language.t("notification.session.error.title"), description, href)
|
||||
|
||||
Reference in New Issue
Block a user