From 3c0c7b2e56a24bda06b8c567e5608546898c99d7 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 8 Jan 2024 05:38:40 +0100 Subject: LibMatrix update --- MxApiExtensions/Classes/SyncState.cs | 5 ++++- MxApiExtensions/Controllers/Client/SyncController.cs | 5 ++++- 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 logger, MxApiExtensionsConfi try { syncMsg.AccountData.Events.Add(new() { Type = key, - RawContent = await syncState.Homeserver.GetAccountDataAsync(key) + RawContent = await syncState.Homeserver.GetAccountDataAsync(key), + RoomId = null, //TODO: implement + Sender = null, + EventId = null }); } catch { } -- cgit 1.4.1