Skip to content

Read receipt experiment - #5360

Draft
florianduros wants to merge 2 commits into
developfrom
florianduros/read-receipt-experiment
Draft

Read receipt experiment#5360
florianduros wants to merge 2 commits into
developfrom
florianduros/read-receipt-experiment

Merge branch 'develop' into florianduros/read-receipt-experiment

a780869
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jun 25, 2026 in 36s

Annotations

Check warning on line 121 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'logger' is deprecated.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi7x&open=AZ7-R9vhv1yDtFiesi7x&pullRequest=5360

Check failure on line 185 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi72&open=AZ7-R9vhv1yDtFiesi72&pullRequest=5360

Check warning on line 570 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'receiptsByEventId: ReceiptCache' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi75&open=AZ7-R9vhv1yDtFiesi75&pullRequest=5360

Check warning on line 3258 in src/models/room.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'timeline' is deprecated.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9r6v1yDtFiesi7p&open=AZ7-R9r6v1yDtFiesi7p&pullRequest=5360

Check warning on line 4033 in src/models/room.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'timeline' is deprecated.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9r6v1yDtFiesi7t&open=AZ7-R9r6v1yDtFiesi7t&pullRequest=5360

Check warning on line 880 in src/models/thread.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `.at(…)` over `[….length - index]`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vIv1yDtFiesi7v&open=AZ7-R9vIv1yDtFiesi7v&pullRequest=5360

Check warning on line 156 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'latestUnthreadedByUser' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi71&open=AZ7-R9vhv1yDtFiesi71&pullRequest=5360

Check warning on line 4033 in src/models/room.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'timeline' is deprecated.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9r6v1yDtFiesi7r&open=AZ7-R9r6v1yDtFiesi7r&pullRequest=5360

Check warning on line 626 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'byType' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi77&open=AZ7-R9vhv1yDtFiesi77&pullRequest=5360

Check warning on line 3258 in src/models/room.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'timeline' is deprecated.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9r6v1yDtFiesi7n&open=AZ7-R9r6v1yDtFiesi7n&pullRequest=5360

Check warning on line 3258 in src/models/room.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `.at(…)` over `[….length - index]`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9r6v1yDtFiesi7o&open=AZ7-R9r6v1yDtFiesi7o&pullRequest=5360

Check warning on line 4033 in src/models/room.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `.at(…)` over `[….length - index]`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9r6v1yDtFiesi7s&open=AZ7-R9r6v1yDtFiesi7s&pullRequest=5360

Check warning on line 225 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi73&open=AZ7-R9vhv1yDtFiesi73&pullRequest=5360

Check warning on line 148 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'currentEventByUserType' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi7z&open=AZ7-R9vhv1yDtFiesi7z&pullRequest=5360

Check warning on line 762 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'cache' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi79&open=AZ7-R9vhv1yDtFiesi79&pullRequest=5360

Check warning on line 705 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'cache' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi78&open=AZ7-R9vhv1yDtFiesi78&pullRequest=5360

Check warning on line 142 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'receiptsByEventId' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi7y&open=AZ7-R9vhv1yDtFiesi7y&pullRequest=5360

Check warning on line 3259 in src/models/room.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9r6v1yDtFiesi7q&open=AZ7-R9r6v1yDtFiesi7q&pullRequest=5360

Check warning on line 571 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'currentEventByUserType: Map<string, string>' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi76&open=AZ7-R9vhv1yDtFiesi76&pullRequest=5360

Check warning on line 880 in src/models/thread.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'timeline' is deprecated.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vIv1yDtFiesi7u&open=AZ7-R9vIv1yDtFiesi7u&pullRequest=5360

Check warning on line 150 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'oldestThreadedReceiptTsByUser' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi70&open=AZ7-R9vhv1yDtFiesi70&pullRequest=5360

Check warning on line 828 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'cache: ReverseReceiptCache' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi7-&open=AZ7-R9vhv1yDtFiesi7-&pullRequest=5360

Check warning on line 462 in src/models/room-receipts.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'logger' is deprecated.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vhv1yDtFiesi74&open=AZ7-R9vhv1yDtFiesi74&pullRequest=5360

Check failure on line 3242 in src/models/room.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9r6v1yDtFiesi7m&open=AZ7-R9r6v1yDtFiesi7m&pullRequest=5360

Check warning on line 880 in src/models/thread.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'timeline' is deprecated.

See more on https://sonarcloud.io/project/issues?id=matrix-js-sdk&issues=AZ7-R9vIv1yDtFiesi7w&open=AZ7-R9vIv1yDtFiesi7w&pullRequest=5360