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