diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fa54362e..85c74d1b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ Here are a few important domain objects: - Spaces are relays used as community groups. Their `url`s are core to a lot of data and components, and are frequently passed around from place to place. - Chats are direct message conversations. There is currently some ambiguity in routing, since relays that don't support NIP 29 also have a "chat" tab, which uses vanilla NIP-C7. -- NIP 29 groups are variously called "rooms" and "channels". Conventionally, a "room" is a group id, while a "channel" as an object representing the group's metadata. +- NIP 29 groups are variously called "rooms" and "rooms". Conventionally, a "room" is a group id, while a "room" as an object representing the group's metadata. - "Alerts" are records of requests the user has made to be notified, following [this NIP](https://github.com/nostr-protocol/nips/pull/1796) `app/core/requests` contains utilities related to loading data from the nostr network. This might include feed manager utilities, loaders, or listeners. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bce21d67..d9055eda 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4179,19 +4179,19 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - side-channel-list@1.0.0: + side-room-list@1.0.0: resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==} engines: {node: '>= 0.4'} - side-channel-map@1.0.1: + side-room-map@1.0.1: resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==} engines: {node: '>= 0.4'} - side-channel-weakmap@1.0.2: + side-room-weakmap@1.0.2: resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} engines: {node: '>= 0.4'} - side-channel@1.1.0: + side-room@1.1.0: resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} engines: {node: '>= 0.4'} @@ -8136,7 +8136,7 @@ snapshots: dependencies: es-errors: 1.3.0 hasown: 2.0.2 - side-channel: 1.1.0 + side-room: 1.1.0 is-array-buffer@3.0.5: dependencies: @@ -9334,33 +9334,33 @@ snapshots: shebang-regex@3.0.0: {} - side-channel-list@1.0.0: + side-room-list@1.0.0: dependencies: es-errors: 1.3.0 object-inspect: 1.13.4 - side-channel-map@1.0.1: + side-room-map@1.0.1: dependencies: call-bound: 1.0.4 es-errors: 1.3.0 get-intrinsic: 1.3.0 object-inspect: 1.13.4 - side-channel-weakmap@1.0.2: + side-room-weakmap@1.0.2: dependencies: call-bound: 1.0.4 es-errors: 1.3.0 get-intrinsic: 1.3.0 object-inspect: 1.13.4 - side-channel-map: 1.0.1 + side-room-map: 1.0.1 - side-channel@1.1.0: + side-room@1.1.0: dependencies: es-errors: 1.3.0 object-inspect: 1.13.4 - side-channel-list: 1.0.0 - side-channel-map: 1.0.1 - side-channel-weakmap: 1.0.2 + side-room-list: 1.0.0 + side-room-map: 1.0.1 + side-room-weakmap: 1.0.2 signal-exit@3.0.7: {} @@ -9483,7 +9483,7 @@ snapshots: internal-slot: 1.1.0 regexp.prototype.flags: 1.5.4 set-function-name: 2.0.2 - side-channel: 1.1.0 + side-room: 1.1.0 string.prototype.trim@1.2.10: dependencies: diff --git a/src/app/components/AlertAdd.svelte b/src/app/components/AlertAdd.svelte index b8f9210d..dcbc627c 100644 --- a/src/app/components/AlertAdd.svelte +++ b/src/app/components/AlertAdd.svelte @@ -21,7 +21,7 @@ type Props = { url?: string - channel?: string + room?: string notifyChat?: boolean notifyThreads?: boolean notifyCalendar?: boolean @@ -30,7 +30,7 @@ let { url = "", - channel = "email", + room = "email", notifyChat = true, notifyThreads = true, notifyCalendar = true, @@ -50,7 +50,7 @@ const back = () => history.back() const submit = async () => { - if (channel === "email" && !email.includes("@")) { + if (room === "email" && !email.includes("@")) { return pushToast({ theme: "error", message: "Please provide an email address", @@ -100,7 +100,7 @@ feed: makeIntersectionFeed(feedFromFilters(filters), makeRelayFeed(url)), claims: claim ? {[url]: claim} : {}, description: `for ${displayList(display)} on ${displayRelayUrl(url)}`, - email: channel === "email" ? {cron, email} : undefined, + email: room === "email" ? {cron, email} : undefined, }) if (error) { @@ -116,7 +116,7 @@ onMount(() => { if (!canSendPushNotifications()) { - channel = "email" + room = "email" } }) @@ -136,14 +136,14 @@
Alert Type*
{/snippet} {#snippet input()} -