From bcd85f53979c16b1135fc935452b05928cebdfa4 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 21 Dec 2020 15:14:59 +0000 Subject: [PATCH] Rename to supportsCallTransfer to be less ambiguous --- src/client.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client.js b/src/client.js index 338afac17..a32edbf88 100644 --- a/src/client.js +++ b/src/client.js @@ -180,7 +180,7 @@ function keyFromRecoverySession(session, decryptionKey) { * @param {boolean} [opts.forceTURN] * Optional. Whether relaying calls through a TURN server should be forced. * - * @param {boolean} [opts.supportsTransfer] + * @param {boolean} [opts.supportsCallTransfer] * Optional. True to advertise support for call transfers to other parties on Matrix calls. * * @param {boolean} [opts.fallbackICEServerAllowed] @@ -367,7 +367,7 @@ export function MatrixClient(opts) { this._cryptoCallbacks = opts.cryptoCallbacks || {}; this._forceTURN = opts.forceTURN || false; - this._supportsTransfer = opts.supportsTransfer || false; + this._supportsCallTransfer = opts.supportsCallTransfer || false; this._fallbackICEServerAllowed = opts.fallbackICEServerAllowed || false; // List of which rooms have encryption enabled: separate from crypto because @@ -702,10 +702,10 @@ MatrixClient.prototype.setForceTURN = function(forceTURN) { /** * Set whether to advertise trabsfer support to other parties on Matrix calls. - * @param {bool} supportsTransfer True to advertise the 'm.call.transeree' capability + * @param {bool} supportsCallTransfer True to advertise the 'm.call.transeree' capability */ -MatrixClient.prototype.setSupportsTransfer = function(supportsTransfer) { - this._supportsTransfer = supportsTransfer; +MatrixClient.prototype.setSupportsCallTransfer = function(supportsCallTransfer) { + this._supportsCallTransfer = supportsCallTransfer; }; /**