From 21a62f37dec985b9d3b839764c2db3b9ae2602a0 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 8 Jun 2016 16:39:41 +0100 Subject: [PATCH] Client: mark our own device as verified --- lib/client.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 4c12cbfb2..98e06c911 100644 --- a/lib/client.js +++ b/lib/client.js @@ -130,10 +130,15 @@ function MatrixClient(opts) { signatures[opts.userId]["ed25519:" + this.deviceId] = signature; this.deviceKeys.signatures = signatures; + var deviceInfo = { + keys: this.deviceKeys.keys, + algorithms: this.deviceKeys.algorithms, + verified: true, + }; var myDevices = this.sessionStore.getEndToEndDevicesForUser( opts.userId ) || {}; - myDevices[opts.deviceId] = this.deviceKeys; + myDevices[opts.deviceId] = deviceInfo; this.sessionStore.storeEndToEndDevicesForUser( opts.userId, myDevices );