1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

src/client.js: Fix incorrect roomId reference in VoIP glare code

MatrixCall has a roomId property, but not a room_id property.
This commit is contained in:
Robert Swain
2017-03-02 13:36:49 +01:00
parent fdf09d46af
commit 72caf1886d

View File

@@ -2829,7 +2829,7 @@ function setupCallEventHandler(client) {
const existingCalls = utils.values(client.callList);
for (i = 0; i < existingCalls.length; ++i) {
const thisCall = existingCalls[i];
if (call.room_id === thisCall.room_id &&
if (call.roomId === thisCall.roomId &&
thisCall.direction === 'outbound' &&
(["wait_local_media", "create_offer", "invite_sent"].indexOf(
thisCall.state) !== -1)) {