From 08b552fc3ad6e81d8ebddc238043681da90673b3 Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 13 Mar 2025 11:50:01 +0100 Subject: Add full invite data to invite handler callback --- LibMatrix.EventTypes/EventContent.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'LibMatrix.EventTypes') diff --git a/LibMatrix.EventTypes/EventContent.cs b/LibMatrix.EventTypes/EventContent.cs index a837252..89686ae 100644 --- a/LibMatrix.EventTypes/EventContent.cs +++ b/LibMatrix.EventTypes/EventContent.cs @@ -6,6 +6,9 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes; public abstract class EventContent { + [JsonExtensionData] + public Dictionary? AdditionalData { get; set; } = []; + public static List GetMatchingEventTypes() where T : EventContent { var type = typeof(T); var eventTypes = new List(); -- cgit 1.5.1