Fix getReadReceiptsForEvent for unknown threads (#9507)
parent
0453b264e3
commit
0f1738b098
|
@ -835,6 +835,13 @@ export default class MessagePanel extends React.Component<IProps, IState> {
|
||||||
: room;
|
: room;
|
||||||
|
|
||||||
const receipts: IReadReceiptProps[] = [];
|
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) => {
|
receiptDestination.getReceiptsForEvent(event).forEach((r) => {
|
||||||
if (
|
if (
|
||||||
!r.userId ||
|
!r.userId ||
|
||||||
|
|
Loading…
Reference in New Issue