1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Fix types of MatrixEvent sender & target

This commit is contained in:
Michael Telatynski
2021-06-22 20:37:50 +01:00
parent 75719c3e0f
commit 7bda13aba6

View File

@@ -27,6 +27,7 @@ import { VerificationRequest } from "../crypto/verification/request/Verification
import { EventType, MsgType, RelationType } from "../@types/event";
import { Crypto } from "../crypto";
import { deepSortedObjectEntries } from "../utils";
import { RoomMember } from "./room-member";
/**
* Enum for event statuses.
@@ -198,8 +199,8 @@ export class MatrixEvent extends EventEmitter {
private readonly localTimestamp: number;
// XXX: these should be read-only
public sender = null;
public target = null;
public sender: RoomMember = null;
public target: RoomMember = null;
public status: EventStatus = null;
public error = null;
public forwardLooking = true;