Skip to content

Commit

Permalink
Channel message thread
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowCait committed Oct 19, 2023
1 parent 11e3d5e commit 735fb8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/routes/[slug=note]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import type { Event } from 'nostr-typedef';
import { createRxOneshotReq, filterKind, uniq, type LazyFilter } from 'rx-nostr';
import { tap } from 'rxjs';
import { tap, merge } from 'rxjs';
import { rxNostr, referencesReqEmit } from '$lib/timelines/MainTimeline';
import { cachedEvents, metadataStore } from '$lib/cache/Events';
import type { PageData } from './$types';
Expand Down Expand Up @@ -101,7 +101,7 @@
const observable = rxNostr.use(eventReq).pipe(uniq(), tap(({event}) => referencesReqEmit(event)));
// Replies
observable.pipe(filterKind(1)).subscribe(packet => {
merge(observable.pipe(filterKind(1)), observable.pipe(filterKind(42))).subscribe(packet => {
console.log('[thread kind 1]', packet);
const eventItem = new EventItem(packet.event);
if (packet.event.id === eventId) {
Expand Down

0 comments on commit 735fb8e

Please sign in to comment.