1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

also set the deviceId on .ready so we know who to send .start to

This commit is contained in:
Bruno Windels
2020-01-31 14:50:48 +01:00
parent fdb33b6189
commit 4b1cecd246

View File

@@ -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;
}