Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat: send more facts to / subscriptions #3524

Merged
merged 2 commits into from
May 22, 2024
Merged

Conversation

Fang-
Copy link
Member

@Fang- Fang- commented May 16, 2024

Chat was already sending some updates (block & msg toggle changes) to the top-level subscription path (and surprisingly isn't sending those anywhere else), but wasn't doing the same for updates about individual chats.

Here, we chuck / into the list of paths to update for most response-level subscription updates, to mirror the "firehose" style that channels' / endpoint has.

Closes LAND-1880.

Chat was already sending some updates (block & msg toggle changes) to
the top-level subscription path (and surprisingly isn't sending those
anywhere else), but wasn't doing the same for updates about individual
chats.

Here, we chuck / into the list of paths to update for most
response-level subscription updates, to mirror the firehose style that
channels' / endpoint has.

Closes LAND-1880.
@Fang- Fang- added the chat label May 16, 2024
Copy link

linear bot commented May 16, 2024

@arthyn
Copy link
Member

arthyn commented May 16, 2024

I think you want to add them for give-unread and di-give-writs-diff as well

@Fang-
Copy link
Member Author

Fang- commented May 16, 2024

@arthyn we don't do unreads on / for channels either. Do we just want to include it for both?

But yes, little oops on +di-give-writs-diff.

Copy link
Member

@latter-bolden latter-bolden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! I'll work on listening for live updates & moving existing subs over once the DM create/invite PR lands.

re unreads: having them in the firehose makes sense to me, but isn't critical for our needs on the client. Will defer to y'all on that one

@latter-bolden latter-bolden merged commit 54edf87 into develop May 22, 2024
1 check failed
@latter-bolden latter-bolden deleted the m/chat-firehose branch May 22, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants