diff --git a/lib/src/room.dart b/lib/src/room.dart index 044208e..6975fff 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -592,7 +592,9 @@ class Room { final event = room.getState('im.ponies.room_emotes', stateKey); if (event != null && stateKeyEntry.value is Map) { addEmotePack( - (room.canonicalAlias?.isEmpty ?? true) ? room.id : canonicalAlias, + (room.canonicalAlias?.isEmpty ?? true) + ? room.id + : canonicalAlias, event.content, stateKeyEntry.value['name']); } diff --git a/lib/src/utils/device_keys_list.dart b/lib/src/utils/device_keys_list.dart index ce62d4b..f140298 100644 --- a/lib/src/utils/device_keys_list.dart +++ b/lib/src/utils/device_keys_list.dart @@ -27,7 +27,8 @@ class DeviceKeysList { return null; } - CrossSigningKey getCrossSigningKey(String type) => crossSigningKeys.values.firstWhere((k) => k.usage.contains(type)); + CrossSigningKey getCrossSigningKey(String type) => + crossSigningKeys.values.firstWhere((k) => k.usage.contains(type)); CrossSigningKey get masterKey => getCrossSigningKey('master'); CrossSigningKey get selfSigningKey => getCrossSigningKey('self_signing'); diff --git a/lib/src/utils/key_verification.dart b/lib/src/utils/key_verification.dart index fed1a63..96b56cc 100644 --- a/lib/src/utils/key_verification.dart +++ b/lib/src/utils/key_verification.dart @@ -151,7 +151,8 @@ class KeyVerification { randomString(512) + DateTime.now().millisecondsSinceEpoch.toString(); } if (client.crossSigning.enabled && - !(await client.crossSigning.isCached()) && !client.isUnknownSession) { + !(await client.crossSigning.isCached()) && + !client.isUnknownSession) { setState(KeyVerificationState.askSSSS); _nextAction = 'request'; } else { @@ -358,7 +359,8 @@ class KeyVerification { var verifiedMasterKey = false; final wasUnknownSession = client.isUnknownSession; for (final key in _verifiedDevices) { - await key.setVerified(true, false); // we don't want to sign the keys juuuust yet + await key.setVerified( + true, false); // we don't want to sign the keys juuuust yet if (key is CrossSigningKey && key.usage.contains('master')) { verifiedMasterKey = true; }