Skip to content

Commit c6ff37c

Browse files
committed
docs: Tidy up comments.
1 parent 1688268 commit c6ff37c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/integ/crypto/history-sharing.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ describe("History Sharing", () => {
256256
});
257257
await bobClient.joinRoom(ROOM_ID, { acceptSharedHistory: true });
258258

259-
// Bob receives and attempts decrypts the megolm message, but should not be able to.
259+
// Bob receives and attempts to decrypt the megolm message, but should not be able to (yet).
260260
const bobSyncResponse = getSyncResponse([aliceClient.getSafeUserId(), bobClient.getSafeUserId()], ROOM_ID);
261261
bobSyncResponse.rooms.join[ROOM_ID].timeline.events.push(
262262
mkEventCustom({
@@ -274,7 +274,7 @@ describe("History Sharing", () => {
274274
await event.getDecryptionPromise();
275275
expect(event.isDecryptionFailure()).toBeTruthy();
276276

277-
// Now the room key bundle arrives
277+
// Now the room key bundle message arrives
278278
fetchMock.getOnce(
279279
`begin:${BOB_HOMESERVER_URL}/_matrix/client/v1/media/download/alice-server/here`,
280280
{ body: uploadedBlob },

src/rust-crypto/rust-crypto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,6 +2151,7 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
21512151
public async getOwnIdentity(): Promise<RustSdkCryptoJs.OwnUserIdentity | undefined> {
21522152
return await this.olmMachine.getIdentity(new RustSdkCryptoJs.UserId(this.userId));
21532153
}
2154+
21542155
/**
21552156
* Handles the receipt of a to-device message, specifically for processing
21562157
* "io.element.msc4268.room_key_bundle" message types.
@@ -2166,7 +2167,6 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
21662167
const { message, encryptionInfo } = payload;
21672168
const claimedSender = encryptionInfo?.sender ?? message.sender;
21682169

2169-
// Validate room ID
21702170
const roomId = message.content.room_id;
21712171
if (typeof roomId !== "string") {
21722172
return;

0 commit comments

Comments
 (0)