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] Fix room load on first hit #7687

Merged
merged 1 commit into from
Aug 8, 2017
Merged

Conversation

sampaiodiego
Copy link
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
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
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

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

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

@geekgonecrazy
Copy link
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