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

[🐴] Block states, writes #4024

Merged
merged 1 commit into from
May 15, 2024

Conversation

estrattonbailey
Copy link
Member

@estrattonbailey estrattonbailey commented May 14, 2024

Stacked on #4022

This PR adds the block/unblock queue used elsewhere in the app. To do so, I had to do a couple things.

First, I needed to add a profile shadow generator method. This pulls out the profiles from the listConvos response and allows them to be shadowed.

Second, I needed the source of data for the Conversation/* to be accessible by the shadow, which meant a call to useProfileQuery. So within the context of the Conversation/* screen, the ConvoView is fetched by RQ and also by the Convo agent. I don't have a good way around this for right now.

Copy link

Old size New size Diff
6.84 MB 6.84 MB 273 B (0.00%)

@estrattonbailey estrattonbailey merged commit a279a63 into dms/block-mute-v2 May 15, 2024
6 checks passed
estrattonbailey added a commit that referenced this pull request May 15, 2024
* Refactor ChatListItem for mod state

* Refactor Conversation Header for mod state

* Invalidate query for list when blocking/unblocking

* Remove unused prop, restore border

* Add mutations, hook up profile shadow to list query, use shadow-aware query for convo (#4024)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants