mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Live thread-summary push: badge counts update on reply ingest (#1521)
Signed-off-by: Tyler Longwell <tlongwell@block.xyz> Co-authored-by: npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
This commit is contained in:
co-authored by
npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d
Tyler Longwell
parent
a255a77358
commit
74a30c3de8
@@ -11,6 +11,7 @@ import {
|
||||
KIND_TYPING_INDICATOR,
|
||||
KIND_USER_STATUS,
|
||||
CHANNEL_EVENT_KINDS,
|
||||
KIND_CHANNEL_THREAD_SUMMARY,
|
||||
} from "@/shared/constants/kinds";
|
||||
import {
|
||||
getTextPayload,
|
||||
@@ -340,7 +341,10 @@ export class RelayClient {
|
||||
) {
|
||||
return this.subscribe(
|
||||
{
|
||||
kinds: [...CHANNEL_EVENT_KINDS],
|
||||
// 39005 rides only this window-store subscription — not
|
||||
// CHANNEL_EVENT_KINDS, whose other consumers (unread tracking,
|
||||
// timeline-cache merges) must never see summary overlays.
|
||||
kinds: [...CHANNEL_EVENT_KINDS, KIND_CHANNEL_THREAD_SUMMARY],
|
||||
"#h": [channelId],
|
||||
limit: 1000,
|
||||
since: Math.floor(Date.now() / 1_000),
|
||||
|
||||
Reference in New Issue
Block a user