summary refs log tree commit diff
path: root/MxApiExtensions/Controllers/Client/Room/RoomsSendMessageController.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-03-22 17:49:01 +0100
committerRory& <root@rory.gay>2024-03-22 17:49:01 +0100
commitc673f705cd62346f5995415414e309bb56b18c66 (patch)
tree61cc0da3b3363a9c0dd5b75563dd54a82c821120 /MxApiExtensions/Controllers/Client/Room/RoomsSendMessageController.cs
parentSimpler unix time (diff)
downloadMxApiExtensions-c673f705cd62346f5995415414e309bb56b18c66.tar.xz
EventIDResponse constructor change
Diffstat (limited to '')
-rw-r--r--MxApiExtensions/Controllers/Client/Room/RoomsSendMessageController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MxApiExtensions/Controllers/Client/Room/RoomsSendMessageController.cs b/MxApiExtensions/Controllers/Client/Room/RoomsSendMessageController.cs
index 7ee104a..369e7cc 100644
--- a/MxApiExtensions/Controllers/Client/Room/RoomsSendMessageController.cs
+++ b/MxApiExtensions/Controllers/Client/Room/RoomsSendMessageController.cs
@@ -32,7 +32,7 @@ public class RoomsSendMessageController(ILogger<LoginController> logger, UserCon
 #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
             handleMxaeCommand(uc, roomId, msg);
 #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
-            await Response.WriteAsJsonAsync(new EventIdResponse("$" + string.Join("", Random.Shared.GetItems("abcdefghijklmnopqrstuvwxyzABCDEFGHIJLKMNOPQRSTUVWXYZ0123456789".ToCharArray(), 100))));
+            await Response.WriteAsJsonAsync(new EventIdResponse(){EventId = "$" + string.Join("", Random.Shared.GetItems("abcdefghijklmnopqrstuvwxyzABCDEFGHIJLKMNOPQRSTUVWXYZ0123456789".ToCharArray(), 100))});
             await Response.CompleteAsync();
         }
         else {