Skip to content

Commit ec7f9ef

Browse files
Merge pull request #473 from vector-im/SimonBrandner/feat/audio-share
2 parents 942800a + 1f4cc7b commit ec7f9ef

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"classnames": "^2.3.1",
3939
"color-hash": "^2.0.1",
4040
"events": "^3.3.0",
41-
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#e876482e62421bb6a1ba58078435c6b3d1210f15",
41+
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#8ba2d257ae24bbed61cd7fe99af081324337161c",
4242
"mermaid": "^8.13.8",
4343
"normalize.css": "^8.0.1",
4444
"pako": "^2.0.4",

src/room/useGroupCall.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,11 @@ export function useGroupCall(groupCall: GroupCall): UseGroupCallType {
302302
const toggleScreensharing = useCallback(() => {
303303
updateState({ requestingScreenshare: true });
304304

305-
groupCall.setScreensharingEnabled(!groupCall.isScreensharing()).then(() => {
306-
updateState({ requestingScreenshare: false });
307-
});
305+
groupCall
306+
.setScreensharingEnabled(!groupCall.isScreensharing(), { audio: true })
307+
.then(() => {
308+
updateState({ requestingScreenshare: false });
309+
});
308310
}, [groupCall]);
309311

310312
useEffect(() => {

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8387,9 +8387,9 @@ matrix-events-sdk@^0.0.1-beta.7:
83878387
resolved "https://registry.yarnpkg.com/matrix-events-sdk/-/matrix-events-sdk-0.0.1-beta.7.tgz#5ffe45eba1f67cc8d7c2377736c728b322524934"
83888388
integrity sha512-9jl4wtWanUFSy2sr2lCjErN/oC8KTAtaeaozJtrgot1JiQcEI4Rda9OLgQ7nLKaqb4Z/QUx/fR3XpDzm5Jy1JA==
83898389

8390-
"matrix-js-sdk@github:matrix-org/matrix-js-sdk#e876482e62421bb6a1ba58078435c6b3d1210f15":
8390+
"matrix-js-sdk@github:matrix-org/matrix-js-sdk#8ba2d257ae24bbed61cd7fe99af081324337161c":
83918391
version "19.0.0"
8392-
resolved "https://codeload.github.com/matrix-org/matrix-js-sdk/tar.gz/e876482e62421bb6a1ba58078435c6b3d1210f15"
8392+
resolved "https://codeload.github.com/matrix-org/matrix-js-sdk/tar.gz/8ba2d257ae24bbed61cd7fe99af081324337161c"
83938393
dependencies:
83948394
"@babel/runtime" "^7.12.5"
83958395
"@types/sdp-transform" "^2.4.5"

0 commit comments

Comments
 (0)