Skip to content

[FIX] Fix room load on first hit#7687

Merged
rodrigok merged 1 commit intodevelopfrom
fix-first-hit-on-room-url
Aug 8, 2017
Merged

[FIX] Fix room load on first hit#7687
rodrigok merged 1 commit intodevelopfrom
fix-first-hit-on-room-url

Conversation

@sampaiodiego
Copy link
Copy Markdown
Member

@RocketChat/core

Some times when you first hit on a room URL (like https://demo.rocket.chat/channel/general) the room does not load due some kind of race condition.

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-7687 August 8, 2017 14:52 Inactive
if ((currentUsername === undefined) && ((user != null ? user.username : undefined) != null)) {
currentUsername = user.username;
RoomManager.closeAllRooms();
FlowRouter.reload();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is a reload going to preserve / load the page?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't know exactly why this code was there.. I only changed the the "function name" not the functionality.

I think this is done because not all places are reactive to user log in, so it need to reload the current route in order to get everything set up.

@rodrigok rodrigok added this to the 0.58.0-rc.1 milestone Aug 8, 2017
@rodrigok rodrigok merged commit 98d3316 into develop Aug 8, 2017
@rodrigok rodrigok deleted the fix-first-hit-on-room-url branch August 8, 2017 17:33
rodrigok added a commit that referenced this pull request Aug 8, 2017
@pokapow
Copy link
Copy Markdown

pokapow commented Aug 22, 2017

Is this bug fix ? I have the last version of rocket chat and we still have this bug ...

@danielo515
Copy link
Copy Markdown

When is this supposed to be in the official release ? Which version ?

@geekgonecrazy
Copy link
Copy Markdown
Contributor

it should be in 0.58.0

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.

6 participants