You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-28 09:24:05 +03:00
Fix getReadReceiptsForEvent for unknown threads (#9507)
This commit is contained in:
@@ -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 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user