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

web: fix bug with new dm creation #3633

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

patosullivan
Copy link
Member

Fixes TLON-2114. We were finding the first unread that matched ship/${theShip} and then returning that unread key as the existing DM. This got inserted into the route as /new/ship/~sampel-palnet, which puts new in the :ship parameter place. the Message component then checks if the :ship parameter is a patp. If it's not, it assumes multidm. We then routed the user to the MultiDm component, and since they're not in a MultiDM with that ID we show the invite accept/reject page (which won't work because this isn't a mutidm and that isn't a valid multidm ID).

The fix is just to return only the patp from the unread key, chopping off the ship/ portion.

Copy link

linear bot commented Jun 18, 2024

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.

Makes sense!

@patosullivan patosullivan changed the base branch from develop to staging June 18, 2024 18:14
@patosullivan patosullivan merged commit 5a9b724 into staging Jun 18, 2024
1 check passed
@patosullivan patosullivan deleted the po/tlon-2114-fix-dm-creation-bug branch June 18, 2024 18:15
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