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 right panel for peeking rooms #5268

Merged
merged 1 commit into from
Oct 5, 2020
Merged

Fix right panel for peeking rooms #5268

merged 1 commit into from
Oct 5, 2020

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Oct 1, 2020

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy requested a review from a team October 1, 2020 11:34
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

otherwise lgtm

@@ -118,6 +118,7 @@ export default class WidgetStore extends AsyncStoreWithClient<IState> {
}

private loadRoomWidgets(room: Room) {
if (!room) return;
Copy link
Member

Choose a reason for hiding this comment

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

would be good to link to element-hq/element-web#8933 as the user is a guest when peeking

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 think this null-guard has anything to do with that however, given that peeking guests have valid rooms too.
I saw a getRooms() call return [null] which is what I am guarding against here.

Copy link
Member

Choose a reason for hiding this comment

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

uh, that sounds like a larger problem that shouldn't be resolved in the depths of the widget code - that'll break the room list and pretty much everything else too.

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, I hit it once and could not repro the next 10x times. This is the only error log that came of it however.

@t3chguy t3chguy merged commit 1e34365 into develop Oct 5, 2020
@t3chguy t3chguy deleted the t3chguy/fix/15349 branch October 5, 2020 23:32
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.

Right sidebar broken when previewing a room (possibly only predecessor rooms)
2 participants