1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Only send threaded read receipts if threads support is enabled (#3612)

* Only send threaded read receipts if threads support is enabled

* Tests
This commit is contained in:
Michael Telatynski
2023-07-20 16:44:52 +01:00
committed by GitHub
parent ecef9fd755
commit a47f319665
2 changed files with 25 additions and 1 deletions

View File

@@ -4999,7 +4999,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
$eventId: event.getId()!,
});
if (!unthreaded) {
if (!unthreaded && this.supportsThreads()) {
// XXX: the spec currently says a threaded read receipt can be sent for the root of a thread,
// but in practice this isn't possible and the spec needs updating.
const isThread =