Skip to content

[FIX] Invalid permalink URLs for Direct Messages#11507

Merged
sampaiodiego merged 4 commits intodevelopfrom
fix.room-permalink
Jul 21, 2018
Merged

[FIX] Invalid permalink URLs for Direct Messages#11507
sampaiodiego merged 4 commits intodevelopfrom
fix.room-permalink

Conversation

@Hudell
Copy link
Copy Markdown
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
Copy Markdown
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