1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00
This commit is contained in:
David Baker
2019-11-21 19:10:27 +00:00
parent 7addacba38
commit 5262d716e4

View File

@@ -4658,7 +4658,10 @@ function setupCallEventHandler(client) {
}
// now loop through the buffer chronologically and inject them
callEventBuffer.forEach(function(e) {
if (e.getType() === "m.call.invite" && ignoreCallIds[e.getContent().call_id]) {
if (
e.getType() === "m.call.invite" &&
ignoreCallIds[e.getContent().call_id]
) {
// This call has previously been answered or hung up: ignore it
return;
}
@@ -4666,7 +4669,7 @@ function setupCallEventHandler(client) {
});
callEventBuffer = [];
}
};
}
client.on("sync", onSync);
function onEvent(event) {