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

Commit

Permalink
Fix getReadReceiptsForEvent for unknown threads (#9507)
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain authored Oct 26, 2022
1 parent 0453b26 commit 0f1738b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/structures/MessagePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,13 @@ export default class MessagePanel extends React.Component<IProps, IState> {
: room;

const receipts: IReadReceiptProps[] = [];

if (!receiptDestination) {
logger.debug("Discarding request, could not find the receiptDestination for event: "
+ this.context.threadId);
return receipts;
}

receiptDestination.getReceiptsForEvent(event).forEach((r) => {
if (
!r.userId ||
Expand Down

0 comments on commit 0f1738b

Please sign in to comment.