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

[FIX] Invalid permalink URLs for Direct Messages #11507

Merged
merged 4 commits into from
Jul 21, 2018

Conversation

Hudell
Copy link
Contributor

@Hudell Hudell commented Jul 19, 2018

Closes #11400

This PR makes two changes: First, it fixes the "Permalink" option to generate valid URLs on direct messages, where it was broken.

The second change is to make it so that permalinks on DMs work for both users on the conversation, regardless of which username is on the URL itself.

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-11507 July 19, 2018 14:54 Inactive
ggazzo
ggazzo previously requested changes Jul 19, 2018
Copy link
Member

@ggazzo ggazzo left a comment

Choose a reason for hiding this comment

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

packages/rocketchat-lib/lib/roomTypes/direct.js is used on server and client side, you cant run this code there

@sampaiodiego sampaiodiego changed the title [FIX] Direct Messages Permalink option generated invalid URLs [FIX] Invalid permalink URLs for Direct Messages Jul 21, 2018
@sampaiodiego sampaiodiego merged commit fc21f77 into develop Jul 21, 2018
@sampaiodiego sampaiodiego deleted the fix.room-permalink branch July 21, 2018 02:03
@sampaiodiego sampaiodiego mentioned this pull request Jul 28, 2018
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.

Permalink to direct message shows 404 error page
5 participants