Skip to content

Commit cee50c4

Browse files
richvdhtexuf
authored andcommitted
Pass UserId into receiveSyncChanges (matrix-org#3273)
1 parent 2651e2e commit cee50c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rust-crypto/rust-crypto.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ export class RustCrypto implements CryptoBackend {
238238
* @param deviceLists - device_lists field from /sync
239239
*/
240240
public async processDeviceLists(deviceLists: IDeviceLists): Promise<void> {
241-
const devices = new RustSdkCryptoJs.DeviceLists(deviceLists.changed, deviceLists.left);
241+
const devices = new RustSdkCryptoJs.DeviceLists(
242+
deviceLists.changed?.map((userId) => new RustSdkCryptoJs.UserId(userId)),
243+
deviceLists.left?.map((userId) => new RustSdkCryptoJs.UserId(userId)),
244+
);
242245
await this.receiveSyncChanges({ devices });
243246
}
244247

0 commit comments

Comments
 (0)