summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
commit953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch)
tree8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /includes/external/matrix/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts
parent62a9199846b0c07c03218703b33e8385764f42d9 (diff)
downloadpluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.gz
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.bz2
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.zip
Updated 30 files and deleted 2976 files (automated)
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts')
-rw-r--r--includes/external/matrix/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts44
1 files changed, 0 insertions, 44 deletions
diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts b/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts
deleted file mode 100644
index 2b2c7ad..0000000
--- a/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import { Relations } from "./relations";
-import { EventType, RelationType } from "../@types/event";
-import { MatrixEvent } from "./event";
-import { EventTimelineSet } from "./event-timeline-set";
-import { MatrixClient } from "../client";
-import { Room } from "./room";
-export declare class RelationsContainer {
- private readonly client;
- private readonly room?;
- private relations;
- constructor(client: MatrixClient, room?: Room | undefined);
- /**
- * Get a collection of child events to a given event in this timeline set.
- *
- * @param eventId - The ID of the event that you'd like to access child events for.
- * For example, with annotations, this would be the ID of the event being annotated.
- * @param relationType - The type of relationship involved, such as "m.annotation", "m.reference", "m.replace", etc.
- * @param eventType - The relation event's type, such as "m.reaction", etc.
- * @throws If `eventId</code>, <code>relationType</code> or <code>eventType`
- * are not valid.
- *
- * @returns
- * A container for relation events or undefined if there are no relation events for
- * the relationType.
- */
- getChildEventsForEvent(eventId: string, relationType: RelationType | string, eventType: EventType | string): Relations | undefined;
- getAllChildEventsForEvent(parentEventId: string): MatrixEvent[];
- /**
- * Set an event as the target event if any Relations exist for it already.
- * Child events can point to other child events as their parent, so this method may be
- * called for events which are also logically child events.
- *
- * @param event - The event to check as relation target.
- */
- aggregateParentEvent(event: MatrixEvent): void;
- /**
- * Add relation events to the relevant relation collection.
- *
- * @param event - The new child event to be aggregated.
- * @param timelineSet - The event timeline set within which to search for the related event if any.
- */
- aggregateChildEvent(event: MatrixEvent, timelineSet?: EventTimelineSet): void;
-}
-//# sourceMappingURL=relations-container.d.ts.map \ No newline at end of file