Skip to content

Commit e2fd2de

Browse files
author
Germain Souquet
committed
fix typo
1 parent f629e41 commit e2fd2de

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4590,7 +4590,8 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
45904590
$eventId: event.getId(),
45914591
});
45924592

4593-
if (event.threadRootId) {
4593+
const isThread = !!event.threadRootId;
4594+
if (isThread) {
45944595
path += utils.encodeUri("/$threadId", {
45954596
$threadId: event.threadRootId,
45964597
});

src/models/room.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2463,7 +2463,7 @@ export class Room extends TimelineReceipts<EmittedEvents, RoomEventHandlerMap> {
24632463
// hack, threadId should be thread_id
24642464
const receipt = content[eventId][receiptType][userId] as any;
24652465

2466-
const receiptDestination = this.threads.get(receipt.threadId) ?? this;
2466+
const receiptDestination = this.threads.get(receipt.thread_id) ?? this;
24672467
receiptDestination.addReceiptToStructure(
24682468
eventId,
24692469
receiptType,

0 commit comments

Comments
 (0)