Don't check devices if crypto is disabled
This commit is contained in:
parent
9e43abaf3a
commit
42fe69aec9
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ export default class DeviceListener {
|
||||||
async recheck() {
|
async recheck() {
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
|
|
||||||
|
if (!cli.isCryptoEnabled()) return false;
|
||||||
|
|
||||||
const devices = await cli.getStoredDevicesForUser(cli.getUserId());
|
const devices = await cli.getStoredDevicesForUser(cli.getUserId());
|
||||||
for (const device of devices) {
|
for (const device of devices) {
|
||||||
if (device.deviceId == cli.deviceId) continue;
|
if (device.deviceId == cli.deviceId) continue;
|
||||||
|
|
Loading…
Reference in a new issue