Skip to content

Commit 98ea352

Browse files
committed
shift-click the video button to screenshare rather than overriding the button entirely.
1 parent 8ff7d87 commit 98ea352

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎src/CallHandler.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ function _onAction(payload) {
158158
newCall.placeVoiceCall();
159159
}
160160
else if (payload.type === 'video') {
161+
newCall.placeVideoCall(
162+
payload.remote_element,
163+
payload.local_element
164+
);
165+
}
166+
else if (payload.type === 'screensharing') {
161167
newCall.placeScreenSharingCall(
162168
payload.remote_element,
163169
payload.local_element

‎src/controllers/molecules/RoomHeader.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ module.exports = {
6969
});
7070
},
7171

72-
onVideoClick: function() {
72+
onVideoClick: function(e) {
7373
dis.dispatch({
7474
action: 'place_call',
75-
type: "video",
75+
type: e.shiftKey ? "screensharing" : "video",
7676
room_id: this.props.room.roomId
7777
});
7878
},

0 commit comments

Comments
 (0)