matrix-org / matrix-org/matrix-rust-sdk-crypto-nodejs

bindings/crypto-nodejs: Take strings for user IDs, device IDs, and room IDs

Open
#17 6 comments 0 reactions 1 assignee View on GitHub

@Hywan is already working on this.

Since Jun 30, 2022.

Dominant language
Rust
Stars
11
Forks
23
Avg merge
22h 12m
Merged PRs (30d)
1

Description

otherwise we end up with a lot of useless object creation in the JS side. For example:

```
const roomMembers = await this.client.getRoomMembers(roomId);
const keysClaimReq = await this.machine.getMissingSessions(roomMembers.map(u => new UserId(u)));
```

we probably don't need these objects when it's clear they will be user IDs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.