-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Simple refactor for skipLobby #30848
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
Changes from all commits
bee16ee
e3857e8
2523d2f
d1bb2d1
7833337
7483d21
d0b8665
62da299
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2609,7 +2609,6 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> { | |
| <CallView | ||
| room={this.state.room} | ||
| resizing={this.state.resizing} | ||
| skipLobby={this.context.roomViewStore.skipCallLobby() ?? false} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| role="main" | ||
| onClose={this.onCallClose} | ||
| /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,7 @@ const RoomCallBannerInner: React.FC<RoomCallBannerProps> = ({ roomId, call }) => | |
| action: Action.ViewRoom, | ||
| room_id: roomId, | ||
| view_call: true, | ||
| skipLobby: "shiftKey" in ev ? ev.shiftKey : false, | ||
| skipLobby: ("shiftKey" in ev && ev.shiftKey) || undefined, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critically this means we only skipLobby when shiftKey is held, otherwise we follow defaults. |
||
| metricsTrigger: undefined, | ||
| }); | ||
| }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.