UNPKG

matrix-react-sdk

Version:
23 lines (22 loc) 804 B
import { MatrixEvent } from "matrix-js-sdk/src/matrix"; /** * This metadata describes when events arrive late after a net-split to offer improved UX. */ interface UnsignedLateEventInfo { /** * Milliseconds since epoch representing the time the event was received by the server */ received_ts: number; /** * An opaque identifier representing the group the server has put the late arriving event into */ group_id: string; } /** * Get io.element.late_event metadata from unsigned as sent by the server. * * @experimental this is not in the Matrix spec and needs special server support * @param mxEvent the Matrix Event to get UnsignedLateEventInfo on */ export declare function getLateEventInfo(mxEvent: MatrixEvent): UnsignedLateEventInfo | undefined; export {};