Put asserted identity option under a 'voip' section
This commit is contained in:
parent
705505fe85
commit
be7d4d020b
2 changed files with 6 additions and 2 deletions
|
@ -188,7 +188,9 @@ export default class CallHandler {
|
||||||
public roomIdForCall(call: MatrixCall): string {
|
public roomIdForCall(call: MatrixCall): string {
|
||||||
if (!call) return null;
|
if (!call) return null;
|
||||||
|
|
||||||
if (SdkConfig.get()['voipObeyAssertedIdentity']) {
|
const voipConfig = SdkConfig.get()['voip'];
|
||||||
|
|
||||||
|
if (voipConfig && voipConfig.obeyAssertedIdentity) {
|
||||||
const nativeUser = this.assertedIdentityNativeUsers[call.callId];
|
const nativeUser = this.assertedIdentityNativeUsers[call.callId];
|
||||||
if (nativeUser) {
|
if (nativeUser) {
|
||||||
const room = findDMForUser(MatrixClientPeg.get(), nativeUser);
|
const room = findDMForUser(MatrixClientPeg.get(), nativeUser);
|
||||||
|
|
|
@ -189,7 +189,9 @@ describe('CallHandler', () => {
|
||||||
|
|
||||||
// Now set the config option
|
// Now set the config option
|
||||||
SdkConfig.put({
|
SdkConfig.put({
|
||||||
voipObeyAssertedIdentity: true,
|
voip: {
|
||||||
|
obeyAssertedIdentity: true,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// ...and send another asserted identity event for a different user
|
// ...and send another asserted identity event for a different user
|
||||||
|
|
Loading…
Reference in a new issue