summary refs log tree commit diff
path: root/MxApiExtensions
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-01-08 05:38:40 +0100
committerRory& <root@rory.gay>2024-01-08 05:38:40 +0100
commit3c0c7b2e56a24bda06b8c567e5608546898c99d7 (patch)
tree25f74f7e12b61212bd31399e47ad823cecdeaf82 /MxApiExtensions
parentReformat (diff)
downloadMxApiExtensions-3c0c7b2e56a24bda06b8c567e5608546898c99d7.tar.xz
LibMatrix update
Diffstat (limited to 'MxApiExtensions')
-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 { }