File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,13 +152,13 @@ export class ToDeviceKeyTransport
152152 return ;
153153 }
154154
155- // TODO: Not possible to check if the event is encrypted or not
156- // see https://github.com/matrix-org/matrix-rust-sdk/issues/4883
157- // if (evnt.getWireType() != EventType.RoomMessageEncrypted) {
158- // // WARN: The call keys were sent in clear. Ignore them
159- // logger.warn(`Call encryption keys sent in clear from: ${event.getSender()}`);
160- // return;
161- // }
155+ // NB: When received via the widget driver, the to-device events
156+ // are properly reconstructed as if they are encrypted ( see MatrixEvent#makeEncrypted).
157+ if ( evnt . getWireType ( ) != EventType . RoomMessageEncrypted ) {
158+ // WARN: The call keys were sent in clear. Ignore them
159+ logger . warn ( `Call encryption keys sent in clear from: ${ event . getSender ( ) } ` ) ;
160+ return ;
161+ }
162162
163163 const content = this . getValidEventContent ( event ) ;
164164 if ( ! content ) return ;
You can’t perform that action at this time.
0 commit comments