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

dms: smoother joins & leaves #3017

Merged
merged 1 commit into from
Nov 20, 2023
Merged

dms: smoother joins & leaves #3017

merged 1 commit into from
Nov 20, 2023

Conversation

latter-bolden
Copy link
Member

Should fix the issue on the latest hackweek deploy where joining and leaving DMs and multi DMs succeed, but doesn't update the interface.

Fixes LAND-1225

Copy link

linear bot commented Nov 20, 2023

LAND-1225 dms: smooth out joins/leaves

My rsvp fix yesterday appears to be failing on the latest hackweek deploy. Joins go through, but the screen isn't updated immediately and refreshing is required. Leaves similarly execute, but the old message thread is still visible in the dms list.

Copy link
Member

@arthyn arthyn left a comment

Choose a reason for hiding this comment

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

makes sense to me

export function useDmUnreads() {
const dmUnreadsKey = ['dms', 'unreads'];
Copy link
Member

Choose a reason for hiding this comment

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

we actually should move these keys up and reuse them everywhere we use the unreads key

Copy link
Member Author

Choose a reason for hiding this comment

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

agreed. Rather than doing it one off here, I'll open a separate PR to extract keys more consistently.

@latter-bolden latter-bolden merged commit 9ce0c9f into hm/hackweek Nov 20, 2023
1 check passed
@latter-bolden latter-bolden deleted the lb/fix-rsvp branch November 20, 2023 22:56
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