You've already forked matrix-js-sdk
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user