1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +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 { EventType, MsgType, RelationType } from "../@types/event";
import { Crypto } from "../crypto"; import { Crypto } from "../crypto";
import { deepSortedObjectEntries } from "../utils"; import { deepSortedObjectEntries } from "../utils";
import { RoomMember } from "./room-member";
/** /**
* Enum for event statuses. * Enum for event statuses.
@@ -198,8 +199,8 @@ export class MatrixEvent extends EventEmitter {
private readonly localTimestamp: number; private readonly localTimestamp: number;
// XXX: these should be read-only // XXX: these should be read-only
public sender = null; public sender: RoomMember = null;
public target = null; public target: RoomMember = null;
public status: EventStatus = null; public status: EventStatus = null;
public error = null; public error = null;
public forwardLooking = true; public forwardLooking = true;