also enable 4s when accepting a verification request

This commit is contained in:
Bruno Windels 2020-03-10 16:54:49 +01:00
parent ddbfe4e1fa
commit ab2e3a3465
2 changed files with 5 additions and 1 deletions

View file

@ -24,7 +24,7 @@ import {findDMForUser} from './createRoom';
import {accessSecretStorage} from './CrossSigningManager';
import SettingsStore from './settings/SettingsStore';
async function enable4SIfNeeded() {
export async function enable4SIfNeeded() {
const cli = MatrixClientPeg.get();
if (!cli.isCryptoEnabled() || !SettingsStore.isFeatureEnabled("feature_cross_signing")) {
return false;