Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 6c9ec43

Browse files
committed
Fix bug with read receipts
1 parent 6e73a85 commit 6c9ec43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/structures/MessagePanel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ export default class MessagePanel extends React.Component<IProps, IState> {
831831
}
832832

833833
const receiptDestination: ReadReceipt<string, ListenerMap<string>> = this.context.threadId
834-
? room.getThread(this.context.threadId)
834+
? room.getThread(this.context.threadId) ?? room
835835
: room;
836836

837837
const receipts: IReadReceiptProps[] = [];

0 commit comments

Comments
 (0)