This commit is contained in:
Sorunome 2020-05-22 13:22:28 +02:00
parent c9a0c5302a
commit 1a8ddb2750
No known key found for this signature in database
GPG key ID: B19471D07FC9BE9C

View file

@ -281,7 +281,7 @@ class DeviceKeys extends _SignedKey {
curve25519Key != null && curve25519Key != null &&
ed25519Key != null; ed25519Key != null;
Future<void> setVerified(bool newVerified, Client client) { Future<void> setVerified(bool newVerified) {
_verified = newVerified; _verified = newVerified;
return client.database return client.database
?.setVerifiedUserDeviceKey(newVerified, client.id, userId, deviceId); ?.setVerifiedUserDeviceKey(newVerified, client.id, userId, deviceId);
@ -336,7 +336,7 @@ class DeviceKeys extends _SignedKey {
blocked = json['blocked'] ?? false; blocked = json['blocked'] ?? false;
} }
KeyVerification startVerification(Client client) { KeyVerification startVerification() {
final request = final request =
KeyVerification(client: client, userId: userId, deviceId: deviceId); KeyVerification(client: client, userId: userId, deviceId: deviceId);
request.start(); request.start();