summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--MxApiExtensions/Classes/SyncState.cs5
-rw-r--r--MxApiExtensions/Controllers/Client/SyncController.cs5
2 files changed, 8 insertions, 2 deletions
diff --git a/MxApiExtensions/Classes/SyncState.cs b/MxApiExtensions/Classes/SyncState.cs
index 50aa0bd..70147d8 100644
--- a/MxApiExtensions/Classes/SyncState.cs
+++ b/MxApiExtensions/Classes/SyncState.cs
@@ -1,6 +1,7 @@
 using System.Collections.Concurrent;
 using System.Text.Json.Serialization;
 using LibMatrix;
+using LibMatrix.EventTypes.Spec.Ephemeral;
 using LibMatrix.EventTypes.Spec.State;
 using LibMatrix.Helpers;
 using LibMatrix.Homeservers;
@@ -69,7 +70,9 @@ public class SyncState {
             Type = "m.presence",
             StateKey = "",
             Sender = Homeserver.WhoAmI.UserId,
-            OriginServerTs = 0
+            OriginServerTs = 0,
+            RoomId = null, //TODO: implement
+            EventId = null
         });
         return existingResponse;
     }
diff --git a/MxApiExtensions/Controllers/Client/SyncController.cs b/MxApiExtensions/Controllers/Client/SyncController.cs
index 3a759fc..4a33b92 100644
--- a/MxApiExtensions/Controllers/Client/SyncController.cs
+++ b/MxApiExtensions/Controllers/Client/SyncController.cs
@@ -196,7 +196,10 @@ public class SyncController(ILogger<SyncController> logger, MxApiExtensionsConfi
             try {
                 syncMsg.AccountData.Events.Add(new() {
                     Type = key,
-                    RawContent = await syncState.Homeserver.GetAccountDataAsync<JsonObject>(key)
+                    RawContent = await syncState.Homeserver.GetAccountDataAsync<JsonObject>(key),
+                    RoomId = null, //TODO: implement
+                    Sender = null,
+                    EventId = null
                 });
             }
             catch { }