From 4b1cecd246bd533e24eccab532b7b3b68bd5913b Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 31 Jan 2020 14:50:48 +0100 Subject: [PATCH] also set the deviceId on .ready so we know who to send .start to --- src/crypto/verification/request/ToDeviceChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/verification/request/ToDeviceChannel.js b/src/crypto/verification/request/ToDeviceChannel.js index ecd099c35..2a8ec9c40 100644 --- a/src/crypto/verification/request/ToDeviceChannel.js +++ b/src/crypto/verification/request/ToDeviceChannel.js @@ -139,7 +139,7 @@ export class ToDeviceChannel { async handleEvent(event, request, isLiveEvent) { const type = event.getType(); const content = event.getContent(); - if (type === REQUEST_TYPE || type === START_TYPE) { + if (type === REQUEST_TYPE || type === READY_TYPE || type === START_TYPE) { if (!this.transactionId) { this.transactionId = content.transaction_id; }