We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
UserId
receiveSyncChanges
1 parent 2651e2e commit cee50c4Copy full SHA for cee50c4
src/rust-crypto/rust-crypto.ts
@@ -238,7 +238,10 @@ export class RustCrypto implements CryptoBackend {
238
* @param deviceLists - device_lists field from /sync
239
*/
240
public async processDeviceLists(deviceLists: IDeviceLists): Promise<void> {
241
- const devices = new RustSdkCryptoJs.DeviceLists(deviceLists.changed, deviceLists.left);
+ const devices = new RustSdkCryptoJs.DeviceLists(
242
+ deviceLists.changed?.map((userId) => new RustSdkCryptoJs.UserId(userId)),
243
+ deviceLists.left?.map((userId) => new RustSdkCryptoJs.UserId(userId)),
244
+ );
245
await this.receiveSyncChanges({ devices });
246
}
247
0 commit comments