mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 19:07:06 +00:00
Use request instead of load to avoid timeouts
This commit is contained in:
@@ -248,13 +248,15 @@ export const makeCalendarFeed = ({
|
|||||||
// Domain specific
|
// Domain specific
|
||||||
|
|
||||||
export const loadAlerts = (pubkey: string) =>
|
export const loadAlerts = (pubkey: string) =>
|
||||||
load({
|
request({
|
||||||
|
autoClose: true,
|
||||||
relays: [NOTIFIER_RELAY],
|
relays: [NOTIFIER_RELAY],
|
||||||
filters: [{kinds: [ALERT_EMAIL, ALERT_WEB, ALERT_IOS, ALERT_ANDROID], authors: [pubkey]}],
|
filters: [{kinds: [ALERT_EMAIL, ALERT_WEB, ALERT_IOS, ALERT_ANDROID], authors: [pubkey]}],
|
||||||
})
|
})
|
||||||
|
|
||||||
export const loadAlertStatuses = (pubkey: string) =>
|
export const loadAlertStatuses = (pubkey: string) =>
|
||||||
load({
|
request({
|
||||||
|
autoClose: true,
|
||||||
relays: [NOTIFIER_RELAY],
|
relays: [NOTIFIER_RELAY],
|
||||||
filters: [{kinds: [ALERT_STATUS], "#p": [pubkey]}],
|
filters: [{kinds: [ALERT_STATUS], "#p": [pubkey]}],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
!fullscreen &&
|
!fullscreen &&
|
||||||
cx(
|
cx(
|
||||||
"bg-alt text-base-content overflow-auto text-base-content shadow-xl",
|
"bg-alt text-base-content overflow-auto text-base-content shadow-xl",
|
||||||
"px-2 py-6 bottom-0 left-0 right-0 top-20 rounded-t-box absolute",
|
"px-4 py-6 bottom-0 left-0 right-0 top-20 rounded-t-box absolute",
|
||||||
"sm:p-6 sm:max-h-[90vh] sm:w-[520px] sm:rounded-box sm:relative sm:top-0",
|
"sm:p-6 sm:max-h-[90vh] sm:w-[520px] sm:rounded-box sm:relative sm:top-0",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user