You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Fix read receipt sending behaviour around thread roots (#3600)
* Fix read receipt sending behaviour around thread roots * Update src/client.ts Co-authored-by: Eric Eastwood <erice@element.io> --------- Co-authored-by: Eric Eastwood <erice@element.io>
This commit is contained in:
committed by
GitHub
parent
b186d79dde
commit
b05f933d83
@@ -5000,9 +5000,11 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
||||
});
|
||||
|
||||
if (!unthreaded) {
|
||||
const isThread = !!event.threadRootId;
|
||||
// A thread cannot be just a thread root and a thread root can only be read in the main timeline
|
||||
const isThread = !!event.threadRootId && !event.isThreadRoot;
|
||||
body = {
|
||||
...body,
|
||||
// Only thread replies should define a specific thread. Thread roots can only be read in the main timeline.
|
||||
thread_id: isThread ? event.threadRootId : MAIN_ROOM_TIMELINE,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user